Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macros
I have recorded a macro that unhides a sheet from the existing workbook. But
when i run it now, it unhides but remains in the existing sheet. I want it to take me to the sheet that has been unhidden. Pls help. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macros
Sub qwerty()
Dim s As Worksheet For Each s In Worksheets If s.Visible = False Then s.Visible = True s.Activate Else End If Next End Sub -- Gary''s Student - gsnu200839 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macros
Hi
You need to activate the sheet like this once it's unhidden: Sheets("Sheet1").Acitvate Hopes this helps -- Per "Sri Harsha" skrev i meddelelsen ... I have recorded a macro that unhides a sheet from the existing workbook. But when i run it now, it unhides but remains in the existing sheet. I want it to take me to the sheet that has been unhidden. Pls help. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macros
Hi,
Try this With Sheets("Sheet1") .Visible = True .Select End With Mike "Sri Harsha" wrote: I have recorded a macro that unhides a sheet from the existing workbook. But when i run it now, it unhides but remains in the existing sheet. I want it to take me to the sheet that has been unhidden. Pls help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macros in Personal.xls that would create two toolbars and buttonswith assigned macros | Excel Programming | |||
choose default macros Not Enabled / Macros Enable Setting | Excel Programming | |||
weird saving of a document with macros resulting with macros being transfered to the copy | Excel Programming | |||
convert lotus 123w macros to excel macros | Excel Programming | |||
Macros not appearing in the Tools Macro Macros list | Excel Programming |