Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Worksheet Selections in Macros
dim ws as worksheet
for each ws in activeworkbook.worksheets ' you may want to test to see if the worksheet is visible ws.activate ' put your code here next ws "Karen" wrote: How do you write a VB code to select all worksheets in a file when you don't know the number of worksheets or the name of the worksheets? Thanks for any and all help. Karen |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Question when Copying an Existing Worksheet | Excel Worksheet Functions | |||
allow macros in protected worksheet | Excel Worksheet Functions | |||
Refrencing another cell in a worksheet that "could" exist | Excel Worksheet Functions | |||
Worksheet Navigation | Excel Discussion (Misc queries) | |||
copyright and worksheet protection | Excel Discussion (Misc queries) |