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.
Sandra FrongilloSenior Business AnalystAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Roy CoxGroup Finance ManagerCommented:
I have an example at home, but here's a good article by Chip Pearson
0
Sandra FrongilloSenior Business AnalystAuthor Commented:
I tried that code but it keeps bugging out here:

ThisWorkbook.Worksheets(C_INTRO_SHEETNAME).Visible = xlSheetVisible
0
Sandra FrongilloSenior Business AnalystAuthor Commented:
Then when I reopen the macro bugs out here:
Private Sub Workbook_Open()
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Roy CoxGroup Finance ManagerCommented:
Can you post your workbook. I'll post my example when I get home if I can't fix yours
0
Sandra FrongilloSenior Business AnalystAuthor Commented:
Here's the test file I was using
TEST.xlsm
0
Roy CoxGroup Finance ManagerCommented:
Try this

Option Explicit was in the wrong place and some declarations too.
TEST--1-.xlsm
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Sandra FrongilloSenior Business AnalystAuthor Commented:
That works!!!  Thanks!!!
0
Sandra FrongilloSenior Business AnalystAuthor Commented:
THAT's AWESOME!!!  Thanks a million !!!
0
Roy CoxGroup Finance ManagerCommented:
Pleased to help.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.