Link to home
Start Free TrialLog in
Avatar of Sandra Frongillo
Sandra FrongilloFlag for United States of America

asked on

Excel 2013 Macro to force enable macros each time workbook is opened (.xlsb or .xlsm)

Looking for a Excel 2013 macro for an .xlsb and .xlsm workbooks that will hide all sheets and force user to enable macros every time they open they open the workbook so they can see the hidden pages.
Avatar of Roy Cox
Roy Cox
Flag of United Kingdom of Great Britain and Northern Ireland image

I have an example at home, but here's a good article by Chip Pearson
Avatar of Sandra Frongillo

ASKER

I tried that code but it keeps bugging out here:

ThisWorkbook.Worksheets(C_INTRO_SHEETNAME).Visible = xlSheetVisible
Then when I reopen the macro bugs out here:
Private Sub Workbook_Open()
Can you post your workbook. I'll post my example when I get home if I can't fix yours
Here's the test file I was using
TEST.xlsm
ASKER CERTIFIED SOLUTION
Avatar of Roy Cox
Roy Cox
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That works!!!  Thanks!!!
THAT's AWESOME!!!  Thanks a million !!!
Pleased to help.