I have written a macro in Word VBA using Word 2002. This
macro opens an excel spreadsheet then copies some graphs
into a Word document. However, because the excel file
contains macros, the Word macro halt execution due to a
warning message that the file contains macros and ask if I
want to continue. I would like to suppress this warning
message from within the Word macro such that the macro
will continue to run.

Any and all help would be greatly appreciated

Garry

Re: Suppress warning message by Word

Word
Fri Mar 18 06:49:15 CST 2005

G'day "Garry" <boswellgw@hotmail.com>,

try setting

Application.DisplayAlerts=wdAlertsNone

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Garry reckoned:

>I have written a macro in Word VBA using Word 2002. This
>macro opens an excel spreadsheet then copies some graphs
>into a Word document. However, because the excel file
>contains macros, the Word macro halt execution due to a
>warning message that the file contains macros and ask if I
>want to continue. I would like to suppress this warning
>message from within the Word macro such that the macro
>will continue to run.
>
>Any and all help would be greatly appreciated
>
>Garry