Disabling Macros After A Save To A Different Filename

R

R3df1sh

I have a routine that poles a client for a filename then saves th
document in the client's designated folder. Is there a way to disabl
or strip the macros/userforms from being run when viewing thi
alternately created folder through that save macro? Possibly poling th
file name before run? I would like them to be able to view this newl
created file without being run through the entry form. Any help i
greatly appreciated. I don't have the luxury of making it an add-in, i
must stay self contained in the origional form. Any help is greatl
appreciated.
Thanks in Advanc
 
O

onedaywhen

You could have a boolean value in a cell, on a hidden sheet perhaps.
All your top level procedures (e.g. Workbook_Open) could check this
value; if it's True the procedure executes normally. Your 'routine
that poles a client' could set this value to False, effectively
disabling the macros.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top