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 / September 2006

Tip: Looking for answers? Try searching our database.

How to suppress warning dialog?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeffery B Paarsa - 11 Sep 2006 22:54 GMT
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?  

Signature

Jeff B Paarsa

Jezebel - 11 Sep 2006 23:25 GMT
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).

> Hello,
>
[quoted text clipped - 9 lines]
> suppress this dialog box from being appear with out changing the page
> setup?
Jean-Yves - 12 Sep 2006 14:29 GMT
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

> 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).
[quoted text clipped - 12 lines]
>> suppress this dialog box from being appear with out changing the page
>> setup?
 
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.