Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I have some code that formats my workbook which is below: Sub Format() Application.DisplayFullScreen = True Application.CommandBars("Worksheet Menu Bar").Enabled = False Sheets("Main Menu").Select With ActiveWindow .DisplayGridlines = False .DisplayHeadings = False .DisplayWorkbookTabs = False End With Sheets("H1").Activate With ActiveWindow .DisplayGridlines = False .DisplayHeadings = False .DisplayWorkbookTabs = False End With Sheets("H2").Activate With ActiveWindow .DisplayGridlines = False .DisplayHeadings = False .DisplayWorkbookTabs = False End With Sheets("Main Menu").Select End Sub I run this when the workbook is opened by the user and only takes a second to run however the user can see the sheets being selected and then revert back to the main menu. I was wondering if there is a way to get the code to point to the sheets H1 and H2 but without actually selecting it or the user seeing them being selected. I appreciate this is purely cosmetic but it would make the front end look a little better. Thanks in advance for your help. Martin |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Activate the top of sheet | Excel Worksheet Functions | |||
Prevent code in "Sheet Activate" from running when sheet made visible from other macr | Excel Programming | |||
activate current sheet | Excel Programming | |||
sheet.activate | Excel Programming | |||
Return to Current Sheet in On (sheet activate) event macro | Excel Programming |