Re: How to suppress warning dialog? by Jean-Yves
Jean-Yves
Tue Sep 12 08:29:38 CDT 2006
Hi,
Was answered previously
Setting the alerts to none does not work if backgroung printing option is
selected.
Try this :
Dim temp as boolean
temp = Application.Options.PrintBackground
Application.Options.PrintBackground = False
Application.DisplayAlerts = wdAlertsNone
ActiveDocument.PrintOut
Application.DisplayAlerts = wdAlertsAll
Application.Options.PrintBackground = temp
Regards
Jean-Yves
"Jezebel" <warcrimes@whitehouse.gov> wrote in message
news:%23UTC5Ef1GHA.4264@TK2MSFTNGP05.phx.gbl...
> You could use SendKeys to respond to it automatically. You can't suppress
> it, as far as I know (it's not subject to the DisplayAlerts settings).
>
>
> "Jeffery B Paarsa" <JeffBPaarsa@Yahoo.com> wrote in message
> news:1BF3F5F2-17EA-437D-B640-9FDAC8878EE0@microsoft.com...
>> Hello,
>>
>> I have a VBA macro which its last command is .printout. Since the
>> template
>> I am using prints out of the set margin I always get this nonsense dialog
>> box
>> of "The margins of section 1 are set outside then printable area of the
>> page.
>> Do you want to continue?" Yes or No... Off course my response is always
>> Yes
>> and my printout is okay with no problem... Does anybody know how I can
>> suppress this dialog box from being appear with out changing the page
>> setup?
>>
>> --
>> Jeff B Paarsa
>
>