Oscar
Fri Aug 11 11:00:47 CDT 2006
Hi Jean-Guy,
I've tried that and it didn't help. The warning dialog still appears and
asks me whether I want to continue. Maybe it's not a Word standard warning
dialogue
regards,
Oscar
"Jean-Guy Marcil" <NoSpam@LeaveMeAlone> schreef in bericht
news:u1fkwtVvGHA.1436@TK2MSFTNGP02.phx.gbl...
> Oscar was telling us:
> Oscar nous racontait que :
>
>> I'm working on a small VB-Word automation program which generates and
>> prints a Word Document. The only problem that I face is that Word
>> fires a warning dialogue stating that the borders of the document are
>> beyond the printable regions. Each time I need to click 'OK' within
>> this window and the printing is done without any problem. Since the
>> warning dialogue pops up with each document this kills my automation.
>> How can I (temporary) get rid of this annoying pop up without
>> changing the Word document by Word VBA coding?
>
> Have you tried with this line of code at the beginning of your Sub:
>
> Application.DisplayAlerts = wdAlertsNone
>
> and with this at the end:
>
> Application.DisplayAlerts = wdAlertsAll
>
> --
> Salut!
> _______________________________________
> Jean-Guy Marcil - Word MVP
> jmarcilREMOVE@CAPSsympatico.caTHISTOO
> Word MVP site:
http://www.word.mvps.org
>