New Cell to make new worksheet

newbie_excel

New Member
Joined
Feb 17, 2007
Messages
23
Hi guys,

I have a workbook with 2 worksheets - "Numbers" and "Template"

In "Numbers", the A column has all our invoice numbers, the B column has names, and the C column has the paid amount.

Is there any way for excel to create a new worksheet for every new row in Column A of Numbers? The worksheet name should be the invoice number, and should be in the same format and design of the "Template" worksheet. Then within the new worksheet, the values of the corresponding B and C cells can be inserted into the relevant cells.

Please help!!

Thanks!
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Yes, putting a routine in the Worksheet_Change event could do this.
What code do your have that (given a new invoice number) will create the new sheet?
 
Upvote 0
Hi Mike,

I have no idea how to do this by hand. I think this will simplify what I'm after:

How can I specify the new worksheet to be named after a given cell?
How could I create a new worksheet every time a new row was created in the Invoices worksheet?
How could I make the new worksheet the same template as the Template worksheet?
 
Upvote 0
By "do it by hand", I meant do it once by hand, recording a macro. The code that will create can be made into an automatic routine.

I assume that Template is already set-up with the formulas and formatting that you want.

Right click on the tab of the Template sheet and select Move or Copy ... from the pop-up menu. (Put the copy at the end of the workbook.)
Double-click on the new sheet tab and change the tab name to match the invoice number.
Go to the Numbers sheet and copy the data from columns A-C. Then paste it into the appropriate places in the new worksheet.

After you have done this a couple of times, for practice, do it again, but with the Macro Recorder going. When finished press the Stop button.

This macro will be the basis for the eventual automatic routine you seek.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,672
Members
452,937
Latest member
Bhg1984

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top