Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2004

Tip: Looking for answers? Try searching our database.

How ignore margin warning from Word

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bo Hansson - 30 Oct 2004 12:17 GMT
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
Dave Lett - 01 Nov 2004 21:10 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.