Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Disable Macros through VBA

Is there any way to disable macros in the specific Workbook from VBA
code before opening that very same Workbook with VBA code i.e. to open
some workbook in "Disable Macros MODE" using only VBA. Or, to refrase
the question, how should be written in the VBA language, the event
when user manualy opens some workbook and when prompted for macro
virus protection, he clicks the "Disable Macros" buton. For which
"Object"(probably Workbook.VBProject) and what property (something
like "Enable Macros") has changed at that occasion.
Thank You in advance. Regards. Mirom.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Disable Macros through VBA

disabling/enabling the macro dialog isn't possible by design. you ca
only kludge your way around it with sendkeys and the like..

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Disable Macros through VBA

See one suggestion at your other post.


Mirom wrote:

Is there any way to disable macros in the specific Workbook from VBA
code before opening that very same Workbook with VBA code i.e. to open
some workbook in "Disable Macros MODE" using only VBA. Or, to refrase
the question, how should be written in the VBA language, the event
when user manualy opens some workbook and when prompted for macro
virus protection, he clicks the "Disable Macros" buton. For which
"Object"(probably Workbook.VBProject) and what property (something
like "Enable Macros") has changed at that occasion.
Thank You in advance. Regards. Mirom.


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Disable Macros through VBA

Dave Peterson wrote in message ...
See one suggestion at your other post.


Thank You very much for the answer.
I forget to specify that I am using Excel 2000. Sorry.
Regards. Mirom.
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
how do i disable macros? whatzzup Excel Discussion (Misc queries) 1 March 14th 06 01:51 PM
Enable/Disable macros Adam Excel Discussion (Misc queries) 2 March 11th 05 10:29 AM
How to disable macros? LenB[_2_] Excel Programming 6 October 6th 03 07:54 PM
Suppress the Disable Macros / Enable Macros Dialog Shoji Karai Excel Programming 5 September 24th 03 03:10 AM
en-/disable macros pop-up James[_10_] Excel Programming 1 July 22nd 03 05:55 PM


All times are GMT +1. The time now is 09:23 AM.

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

About Us

"It's about Microsoft Excel"