Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Switching to a specific worksheet
I'm new to VBA and have a sub that creates a new worksheet with the
name specified in a input box. I would like to switch back to my original worksheet after the creating the new one and I'm lost. I would also like to switch to any worksheet just by entering the WS name in an input box. Appreciate any help. Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Switching to a specific worksheet
Something like:
Dim sSheetNameOriginal As String sSheetNameOriginal = ActiveSheet.Name 'your code Sheets(sSheetNameOriginal).Select 'to go back -- Wigi http://www.wimgielis.be = Excel/VBA, soccer and music "JR" wrote: I'm new to VBA and have a sub that creates a new worksheet with the name specified in a input box. I would like to switch back to my original worksheet after the creating the new one and I'm lost. I would also like to switch to any worksheet just by entering the WS name in an input box. Appreciate any help. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
switching the worksheet? | Excel Discussion (Misc queries) | |||
Starting a macro when switching to a worksheet? | Excel Programming | |||
Not switching to next worksheet | Setting up and Configuration of Excel | |||
Switching to a tab in the worksheet | Excel Programming | |||
selecting cell range in other worksheet without switching to worksheet | Excel Programming |