Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Disabling Macros After A Save To A Different Filename


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

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default Disabling Macros After A Save To A Different Filename

Hi R3df1sh,

This page on Chip Pearson's site should get you started:

http://www.cpearson.com/excel/vbe.htm

If you can't use an addin with templates, you're probably stuck with this
method.

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]


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


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from
http://www.ExcelForum.com/


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 459
Default Disabling Macros After A Save To A Different Filename

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.

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


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling macros EllenM Excel Discussion (Misc queries) 1 February 26th 08 04:57 PM
Disabling/Enabling Macros HRobertson Excel Programming 2 October 24th 03 04:07 PM
preventing disabling of macros Combo[_2_] Excel Programming 0 October 9th 03 12:46 AM
disabling Auto_Open macros Malone[_2_] Excel Programming 3 October 2nd 03 10:20 PM
Enabling/Disabling Macros David Excel Programming 6 August 12th 03 06:21 PM


All times are GMT +1. The time now is 04:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"