Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
'go to' macros
I have set the following macro to unhide column Y in all sheets.
Dim sh As Worksheet For Each sh In Sheets(Array("sheet1", "sheet2", "sheet3")) sh.Columns("X:Z").EntireColumn.Hidden = False Range("H7").Select Next However, how do I also get it to select sell H7 and also scroll to the top left of the workbook in all sheets? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
'go to' macros
Hi FJDx
Try this Sub Test() Dim sh As Worksheet For Each sh In Sheets(Array("sheet1", "sheet2", "sheet3")) sh.Columns("X:Z").EntireColumn.Hidden = False Application.GoTo sh.Range("H7"), True Next End Sub -- Regards Ron de Bruin http://www.rondebruin.nl "FJDx" wrote in message ... I have set the following macro to unhide column Y in all sheets. Dim sh As Worksheet For Each sh In Sheets(Array("sheet1", "sheet2", "sheet3")) sh.Columns("X:Z").EntireColumn.Hidden = False Range("H7").Select Next However, how do I also get it to select sell H7 and also scroll to the top left of the workbook in all sheets? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
'go to' macros
"Ron de Bruin" wrote in message
... Hi FJDx Try this Sub Test() Dim sh As Worksheet For Each sh In Sheets(Array("sheet1", "sheet2", "sheet3")) sh.Columns("X:Z").EntireColumn.Hidden = False Application.GoTo sh.Range("H7"), True Next End Sub Thank you. Is there an option to scroll to a certain area of each worksheet selected as well? |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
'go to' macros
If I understand you correct
For Each sh In ActiveWindow.SelectedSheets -- Regards Ron de Bruin http://www.rondebruin.nl "FJDx" wrote in message ... "Ron de Bruin" wrote in message ... Hi FJDx Try this Sub Test() Dim sh As Worksheet For Each sh In Sheets(Array("sheet1", "sheet2", "sheet3")) sh.Columns("X:Z").EntireColumn.Hidden = False Application.GoTo sh.Range("H7"), True Next End Sub Thank you. Is there an option to scroll to a certain area of each worksheet selected as well? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Training: More on how to use macros in Excel: Recording Macros | Excel Worksheet Functions | |||
Making excel macros run Word macros | Excel Programming | |||
Macro Size Limit / open macros with macros? | Excel Programming | |||
Macros not appearing in the Tools Macro Macros list | Excel Programming | |||
Suppress the Disable Macros / Enable Macros Dialog | Excel Programming |