Google-sheets – Auto Create New Google Sheet With Column Headers Based on List of Names

google sheetsgoogle-apps-scriptlinks

I'm trying to create a VERY basic CRM tool. I want to create a running list of customer names. Once I enter a name in Column A I'd like a new Sheet automatically created with pre-set columns I can enter values and information into. The columns I'd like are:

1. Name
2. Address
3. Phone Number
4. Email Address
5. Quote
6. Sold

Also, I'd like to be able to click on the name and be taken directly to the corresponding sheet that has been created.

Best Answer

Once I enter a name in Column A I'd like a new Sheet automatically created with pre-set columns

function onOpen() {
    SpreadsheetApp.getUi().createMenu('My Menu')
        .addItem('Create New Tabs', 'createTabs')
        .addToUi()}
function createTabs() { var ss = SpreadsheetApp.getActive() ss.getSheetByName('SheetXX').getRange('A:A').getValues().filter(String) .forEach(function (sn) { if (!ss.getSheetByName(sn[0])) { ss.insertSheet(sn[0], ss.getSheets().length);}})}

This script will create a new custom menu/submenu with the option to create new tabs/sheets. The usage is: create a new sheet and rename it to SheetXX and then populate column A with desired names

Hina
Yuki
etc.

and then go to My Menu and select Create New Tabs

enter image description here


The columns I'd like are: 1. Name 2. Address 3. Phone Number 4. Email Address 5. Quote 6. Sold

Template copy/duplication you may want to check:


click on the name and be taken directly to the corresponding sheet that has been created

For that checkout hyperlinks and harness the power of gid numbers