Auto run a macro in Excel- can you call other procedures/macros from this 'Private Sub Workbook_Open

Copper Contributor

I need to run a macro when my Excel workbook is being opened. This macro is changing some screen settings (ribbon off, headings off etc.). It does that by calling other macros (say one for headings off, one for status bar off etc.).

In principal it does all this at opening and there are no errors when I run this macro stepwise with F8 and when it runs automatically. But then, after ribbon, headings etc. are off I have a command :

'Worksheets("Start").Select Range("A1:Y52").Select 
ActiveWindow.Zoom = True

This seems not to work.

If I run this as an extra macro the screen reacts, but not as part of the "Workbook_Open"-macro. Can anybody help? Thanks in advance, LuBu

 

0 Replies