Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi There,
I was given the following code to ensure that whenever a workbook is opened it will always go to Sheet1 and A1. This was great: Private Sub Workbook_Open() Sheets("Sheet1").Select Range("A1").Select End Sub I'm now requiring something similar to ensure that if any other sheets are selected once the workbook is opened, the command [Range("A1").Select] occurs.So, could someone help me with the first part of the code. I assume you would go into the code viewer for each sheet and add something like: Sheet1_Open() Sheets("Sheet1").Select Range("A1").Select End Sub I think I tried this but a compile error when I opened up the workbook. Hope someone can help (something tells me I could put some code in a module so that I wan't have to repeat it for each sheet. However, happy to just get the basic code to put in if that is not viable) Hope someone can help |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Simple Checkbox Message Code | Excel Discussion (Misc queries) | |||
code not unique find latest date | Excel Discussion (Misc queries) | |||
VLOOKUP for Zip Code Ranges | Excel Worksheet Functions | |||
Conform a total to a list of results? | Excel Discussion (Misc queries) | |||
Macro for changing text to Proper Case | Excel Worksheet Functions |