LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default How to capture when a User changes the printer

Greetings all,
I have VBA code in the Workbook.BeforePrint procedure that sets the
print area and other items, and it works well. It seems that these
settings are used for the current Application.ActivePrinter only. I
say this because after the BeforePrint procedure fires, if the User
changes the printer in the Print dialog box, any settings I had set are
not applied to the new Application.ActivePrinter.
For example, if I set the scaling to print 1 page wide on the original
printer (in the BeforePrint procedure), then choose a different printer
in the Print dialog box, the newly selected printer has the scaling at
100%.

Any ideas about catching the Application.ActivePrinter change without
writing code that uses the Windows API to catch messages to the
application? Alternatively, is there a way to 're-fire' the
BeforePrint procedure?

TIA for your replies,

Jacob

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Capture user ID... Doolee Excel Discussion (Misc queries) 2 March 24th 08 07:20 PM
InputBox to capture user selected sheet names? quartz[_2_] Excel Programming 7 December 3rd 05 10:51 AM
Printer Capture Fred Ernst[_2_] Excel Programming 1 November 21st 05 05:21 PM
create a pause in print macro to allow user to select printer Scott53 Excel Programming 1 September 7th 05 04:29 PM
How to capture user ID in Excel macro? Ivan Excel Programming 1 May 26th 05 09:49 AM


All times are GMT +1. The time now is 06:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"