Input data in a worksheet so it will open and create a new worksheet tmeplate

elliemae64

New Member
Joined
Apr 15, 2009
Messages
4
Hello all,

I am trying to insert data in a cell in one worksheet with hopes on opening a new worksheet (and name the new worksheet with the data I input) in the same workbook.

example: If I type Ellen McKay in A5 in worksheet 1, I want it to create and open a worksheet 2 named Ellen McKay. But I want to worksheet 2 to be an invoice template that I created. Can this be done?
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
I think templates apply to workBOOKS. Try...

Code:
   vName = range("A5")
    Workbooks.Add Template:="C:\Users\myName\AppData\Roaming\Microsoft\Templates\Jaxworks_GA_ExpBudget.xltx"
    ActiveSheet.Name =vName
 
Upvote 0

Forum statistics

Threads
1,214,912
Messages
6,122,200
Members
449,072
Latest member
DW Draft

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