How ignore margin warning from Word

B

Bo Hansson

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
 
D

Dave Lett

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
 
B

Bo Hansson

Thanks Dave,

Unfortunately, it doesn't work. Are there other ways to do it ?

/Bosse H
 
B

Bo Hansson

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
 
Top