Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have searched and searched for this answer but everything I have
found and tried did not work. The macro I use is very simple. It creats and names a second worksheet that uses different formulas to return values based on the data in the first worksheet. I also populate Cell B2 in the new sheet with the name of the original worksheet. After the second worksheet is created I want the macro to go back to the original and make changes -add a column, delete a column, resort, etc. The name of the first worksheet changes daily. This code works fine for what I need and so I use it: Worksheets(1).Activate But what I want to know how to do, for my own understanding, is how to Activate a worksheet based on a Cell value. I have tried Indirect and a number of other things with no luck. Worksheets(B2).Activate does not work because it is looking for a worksheet named B2. Is there an easy way to say Worksheets(X).Activate where "X" is the text in a Cell like B2? Thanks, Dow |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Switch lookup function to another sheet | Excel Worksheet Functions | |||
Calendar Control - Switch to Sheet X | Excel Programming | |||
Excel: Arrows scroll sheet instead of move cursor. How to switch | Excel Discussion (Misc queries) | |||
Can I switch back to Excel sheet while a form is shown? | Excel Programming | |||
Trying to switch to a different sheet in a macro? | Excel Programming |