Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Test printer parameter before continuing with macro

I have a macro that one of the things it does is set the page size to
11x17.

This works great on HP printers (that support that size of course) but
there are some users that use a konica printer that uses tabloid
instead of 11x17. (same size, its just the printer driver recognizes
one and not the other)


to set one up would be

..PaperSize = xlPaper11x17

and for the other one it would be

..PaperSize = xlPaperTabloid

Now my question,

Is there a way that I can test first if the printer driver supports
Tabloid or 11x17??

something like

if ActiveSheet.PageSetup.PaperSize = xlPaper11x17 returns error then
ActiveSheet.PageSetup.PaperSize = xlPaperTabloid



Thanks

Chris

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Test printer parameter before continuing with macro

mayber something here you can use:

http://support.microsoft.com/kb/244639/en-us
OFF2000: Macro to Obtain a List of Paper Names Supported by the Active
Printer

--
Regards,
Tom Ogilvy


"Chris Salcedo" wrote in message
oups.com...
I have a macro that one of the things it does is set the page size to
11x17.

This works great on HP printers (that support that size of course) but
there are some users that use a konica printer that uses tabloid
instead of 11x17. (same size, its just the printer driver recognizes
one and not the other)


to set one up would be

.PaperSize = xlPaper11x17

and for the other one it would be

.PaperSize = xlPaperTabloid

Now my question,

Is there a way that I can test first if the printer driver supports
Tabloid or 11x17??

something like

if ActiveSheet.PageSetup.PaperSize = xlPaper11x17 returns error then
ActiveSheet.PageSetup.PaperSize = xlPaperTabloid



Thanks

Chris



Reply
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
Continuing Macro Jase4now Excel Discussion (Misc queries) 5 May 20th 08 07:50 PM
Parameter in Macro Call? kmbarz Excel Programming 3 June 22nd 05 09:07 PM
Macro for Parameter Query bchan[_3_] Excel Programming 0 October 19th 04 08:08 AM
Macro for Parameter Query bchan[_2_] Excel Programming 1 October 18th 04 05:00 PM
Macro for Parameter Query bchan Excel Programming 1 October 18th 04 11:31 AM


All times are GMT +1. The time now is 10:24 PM.

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

About Us

"It's about Microsoft Excel"