Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to copy a worksheet then make it active as shown in the code below, but the Set command
does not work. Is this the correct way to grab the identity of a newly copied worksheet? The worksheet "Invoice Template" is hidden, so that's why the ".Visible" statement. Set newSheet = Worksheets("Invoice Template").Copy befo=Worksheets(1) With newSheet .select .Visible = xlSheetVisible result = InputBox("Enter a name for your new invoice", "Name your invoice") If result < "" Then .Name = result Else .Name = "Invoice - " & Format(Date, "mmm_d_yyyy") End If end with Thank you, Richard |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
automatically appending newly added data on worksheet to a master list worksheet | Links and Linking in Excel | |||
What's the easiest way to relink sheets to a newly copied master. | Excel Worksheet Functions | |||
Referencing a newly created worksheet | Excel Worksheet Functions | |||
How do I return to newly created worksheet? | Excel Programming | |||
Add Hyperlink to newly added worksheet? | Excel Programming |