ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Disable Macro Alert (https://www.excelbanter.com/excel-discussion-misc-queries/270584-disable-macro-alert.html)

[email protected]

Disable Macro Alert
 
I have VBA Code attached to Workbook A. My VBA Code opens Workbook B
in order to extract certain information. Then, my code closes Workbook
B without saving any changes that might have occurred to Workbook B.

Workbook B includes macros. Because my security is set on Medium, I
get the Enable/Disable macro message.

In the same manner in which I can disable the UpdateLinks message, and
without changing my macro security setting, is there a line of code I
can use in Excel 2003 to disable the Enable/Disable macro message?

Thank you.


GS[_2_]

Disable Macro Alert
 
wrote :
I have VBA Code attached to Workbook A. My VBA Code opens Workbook B
in order to extract certain information. Then, my code closes Workbook
B without saving any changes that might have occurred to Workbook B.

Workbook B includes macros. Because my security is set on Medium, I
get the Enable/Disable macro message.


This doesn't -USUALLY- happen with 'automated' opening of workbooks
with macros, regardless of macro security level! (Macros in the opened
workbook are automatically enabled)

In the same manner in which I can disable the UpdateLinks message, and
without changing my macro security setting, is there a line of code I
can use in Excel 2003 to disable the Enable/Disable macro message?

Thank you.


--
Garry

Free usenet access at
http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc



Gord

Disable Macro Alert
 
You cannot use code to disable the macro warning...........would
defeat the use of security measures<g

Try creating a digital certificate and sign the book with that.

Use the SelfCert tool from Office Tools.

Sign your workbook B project with that signature..............good
only on your computer...........you can't export the signature key.


Gord Dibben Microsoft Excel MVP


On Fri, 2 Sep 2011 06:07:43 -0700 (PDT), "
wrote:

I have VBA Code attached to Workbook A. My VBA Code opens Workbook B
in order to extract certain information. Then, my code closes Workbook
B without saving any changes that might have occurred to Workbook B.

Workbook B includes macros. Because my security is set on Medium, I
get the Enable/Disable macro message.

In the same manner in which I can disable the UpdateLinks message, and
without changing my macro security setting, is there a line of code I
can use in Excel 2003 to disable the Enable/Disable macro message?

Thank you.



All times are GMT +1. The time now is 12:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com