Hi Bo,
What's the point in detecting them if you want to ignore them anyway? You
can try the following:
Application.DisplayAlerts = False
''' your printout routine
Application.DisplayAlerts = True
HTH,
Dave
> When printing labels from my VBA application I would like to detect and
> ignore margin warnings from Word.
>
> Sure there is a simple way to do that - or ?
>
> /BosseH
Bo Hansson - 07 Nov 2004 18:00 GMT
Thanks Dave,
Unfortunately, it doesn't work. Are there other ways to do it ?
/Bosse H
> Hi Bo,
>
[quoted text clipped - 14 lines]
>>
>> /BosseH
Dave Lett - 08 Nov 2004 16:02 GMT
Hi Bo,
Can you send a sample of your routine?
Dave
> Thanks Dave,
>
[quoted text clipped - 20 lines]
> >>
> >> /BosseH
Bo Hansson - 14 Nov 2004 19:25 GMT
OK, here is my very simple routine:
'I'm first building oDoc, which contains a number of address labels, then
Application.DisplayAlerts = wdAlertsNone
oDoc.PrintOut
oDoc.Close (wdDoNotSaveChanges)
Application.DisplayAlerts = wdAlertsAll
/BosseH
> Hi Bo,
>
[quoted text clipped - 28 lines]
>> >>
>> >> /BosseH