Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
A staff member produced an insert macro using visual basic editor in excel
When I attempt to insert a sheet, the macro always selects the first sheet of a multipal book. The following command has been used. Sheets ("Command Page").Select How can I identify a specfic sheet in a workbook |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
perhaps
to get the last sheet as an example. With thisworkbook .Worksheets(.Worksheets.count).Select End With or you can specify a specific sheet, Worksheets("MyNewSheet").Select but that is what you are already doing. -- Regards, Tom Ogilvy "F.C" wrote in message ... A staff member produced an insert macro using visual basic editor in excel When I attempt to insert a sheet, the macro always selects the first sheet of a multipal book. The following command has been used. Sheets ("Command Page").Select How can I identify a specfic sheet in a workbook |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dear Tom
I ended up doing the following Worksheets("Export").Select Thank you for your help Kind Regards Frank "Tom Ogilvy" wrote: perhaps to get the last sheet as an example. With thisworkbook .Worksheets(.Worksheets.count).Select End With or you can specify a specific sheet, Worksheets("MyNewSheet").Select but that is what you are already doing. -- Regards, Tom Ogilvy "F.C" wrote in message ... A staff member produced an insert macro using visual basic editor in excel When I attempt to insert a sheet, the macro always selects the first sheet of a multipal book. The following command has been used. Sheets ("Command Page").Select How can I identify a specfic sheet in a workbook |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help me please understand this Visual Basic command | Excel Discussion (Misc queries) | |||
VISUAL BASIC COMMAND TO MOVE CURSER DOWN ONE CELL | Excel Worksheet Functions | |||
Problems in Visual Basic Editior, In search of a command | Excel Programming | |||
Saving Workbook in Visual Basic Hides the Worksheet, Why | Excel Programming | |||
visual basic command in a cell?? | Excel Programming |