PC Review


Reply
Thread Tools Rate Thread

Changing printer defaults in Excel Worksheets

 
 
JIrvan
Guest
Posts: n/a
 
      22nd Sep 2008
We have a client that recently moved to Excel 2007. The collate default was
set to unchecked for a period of time in the template and so they have a
number of very active spreadsheets that do not collate properly by default.
We have since
fixed the template and resolved the issue going forward but need a solution
to fix this setting in all of the existing files.

According to the MSFT guys in the Certified Partner forums, I can
programatically fix the collate settings for the files that were created
while the template was incorrect. What objects do I need to call to gain
access to these defaults so that the correct print settings can be set?

Thanks,

J
 
Reply With Quote
 
 
 
 
NoodNutt
Guest
Posts: n/a
 
      23rd Sep 2008
G'day J

I used this code a long time ago, but it should still be relavent in 2007

Change the range & ActivePrinter to suit

ActiveSheet.Select
Range("Z1:AH51").Select
ActiveSheet.PageSetup.PrintArea = "$Z$1:$AH$51"
Application.ActivePrinter = "HP LaserJet 1200 Series PCL 6 on LPT1:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

If you have multiple worksheets that have differing print requirements:

Create a macro for each sheet that requires different print needs and change
the code to suit. e.g:

ActiveSheet.Select
Range("A1:A100").Select
ActiveSheet.PageSetup.PrintArea = "$A$1:$A$100"
Application.ActivePrinter = "MyLaserJet on MyNetwork:"
ActiveWindow.SelectedSheets.PrintOut Copies:=10, Collate:=True
or
ActiveSheet.Select
Range("D1020").Select
ActiveSheet.PageSetup.PrintArea = "$D$10:$D$20"
Application.ActivePrinter = "MyOtherLaserJet on MyOtherNetwork:"
ActiveWindow.SelectedSheets.PrintOut Copies:=100, Collate:=False

Ask your IT people for the Actual location of your printer(s) on the
network.

HTH
Mark.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Excel defaults David Schwartz Microsoft Excel Misc 1 9th Jan 2009 06:59 PM
My printer defaults keep changing =?Utf-8?B?S2FyaWFubg==?= Windows XP Print / Fax 5 18th Mar 2008 10:38 AM
Printer defaults changing for client sessions =?Utf-8?B?TG91IERlQ2ljY28=?= Microsoft Windows 2000 Terminal Server Applications 0 25th Oct 2004 02:55 PM
Re: changing printer defaults Suzanne S. Barnhill Microsoft Word Document Management 0 2nd Jul 2004 05:33 PM
CHANGING PRINTER DEFAULTS OLDJAY Microsoft Excel Programming 1 12th May 2004 09:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:11 AM.