Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The following doesn,t work and I have no idea why - any suggestions?
I am assuming the code should run when the worksheet "Data Input" is selected. 'Code in Sheet1 "Data Input" Private Sub Worksheet_Activate() Sheets("Data Input").Unprotect Password:="********" ClearApplicationControls Sheets("Data Input").Protect Password:="********" End Sub 'Code in Module2 Sub ClearApplicationControls() Application.ScreenUpdating = False With ActiveWindow .DisplayHorizontalScrollBar = True .DisplayVerticalScrollBar = True .DisplayWorkbookTabs = True .DisplayHeadings = False .WindowState = xlMaximized End With Dim OneBar As CommandBar On Error Resume Next For Each OneBar In CommandBars OneBar.Visible = False Next On Error GoTo 0 With Application .DisplayFullScreen = False .DisplayFormulaBar = False End With Application.ScreenUpdating = True End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro recorded... tabs & file names changed, macro hangs | Excel Worksheet Functions | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
Macro not showing in Tools/Macro/Macros yet show up when I goto VBA editor | Excel Programming | |||
macro to delete entire rows when column A is blank ...a quick macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |