Excel Ladies and Germs, lets hear it for SUB Workbook_BeforePrint :: MrExcel Message Board



 FAQFAQ
   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   StatisticsStatistics 
 RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Online StoreOnline Store

MrExcel Message Board Forum Index -> Excel Questions

Ladies and Germs, lets hear it for SUB Workbook_BeforePrint
Post new topic   Reply to topic
Last Thread | Next Thread  >   Printable version
  Author    Thread

bill
Board Master


Joined: 08 Mar 2002
Posts: 176

Flag: Usa

Status: Offline

 Reply with quote  

Hello,

I'm using the Workbook_BeforePrint subroutine to manually print jobs as I must make adjustments to FOOTERS and the like.

I ran into a snafu (above and beyond the PRINT PREVIEW issue in which the code kicks off even though you did not wish to print).

Without the procedure in place, one can (from the Workseet Menu Bar) select FILE>PRINT and be prompted with a print dialog window.

From there you can select a variety of print options.

Unfortunately, the procedure in question WILL NOT prompt for print options from FILE>PRINT. This might cause the user to print gobs of stuff (if my sneaky VBA has its way).

So, is there a way to call the window from VBA?

Thanks most kindly:)

[ This Message was edited by: bill on 2002-04-19 10:49 ]

[ This Message was edited by: bill on 2002-04-19 10:50 ]

[ This Message was edited by: bill on 2002-04-19 10:51 ]

Post Fri Apr 19, 2002 2:49 pm 
 View user's profile Send private message Send e-mail ICQ Number

Mark O'Brien
MrExcel MVP


Joined: 16 Feb 2002
Posts: 3155
Location: Columbus, OH, USA
Flag: Scotland

Status: Offline

 Reply with quote  

Not quite sure what you're asking for here. Is it this you want?


Application.Dialogs(xlDialogPrint).Show


_________________
Mark O'Brien

Columbus Ohio Celtic Supporters Club

Post Fri Apr 19, 2002 3:09 pm 
 View user's profile Send private message

bill
Board Master


Joined: 08 Mar 2002
Posts: 176

Flag: Usa

Status: Offline

 Reply with quote  

YES!!!!!!!


thank you!!!!!

Post Fri Apr 19, 2002 5:15 pm 
 View user's profile Send private message Send e-mail ICQ Number
  Display posts from previous:      

MrExcel Message Board Forum Index -> Excel Questions


Forum Jump:
Jump to:  

Post new topic   Reply to topic
Page 1 of 1



Add To Favorites

 


Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB: 2.0.4 © 2001 phpBB Group

Need help posting your first question? Read how to post

Need extra help ? Couldn't get the answer you needed ? Get a free quote from our Consulting Team

Download Colo's HTML Maker utility for displaying your Excel Worksheet on the board.

Download VB HTML Maker to post your code on the board


Check out our new index to 485 Excel Articles.


Return to MrExcel Consulting

All contents Copyright 1998-2004 by MrExcel.com
If you believe information posted here is from your copyrighted source, notify us per the Terms of Use
Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.