Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
smi smi is offline
external usenet poster
 
Posts: 9
Default Setting printer paper

Hello,

Thank you very much for your time for helping me in the past. I have a
question and I can not find any where in the Google search or book....
I need to use VBA to set the paper custom length and width for my printing.
Width = 6.5 inches
Length = 8.5 inches

Long


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Setting printer paper

KeepitCool posted this in response to a similar question yesterday:

--------
Mike,

Manipulating the printer settings from the registry is
rather complicated.

It depends on operating system etc etc. A while back i've written an
experimental addin MultiTrayPrint to switch printertrays.

Although unused in the interface a lot of background stuff
(like papersizes, bin to size mapping, etc etc) has been
programmed into classmodules in the addin, and you may be able
to use / adapt it to suit your needs.

The code is NOT documented.. but fairly structered.
It involves some 15 API functions and may be instructive.

Download it from my site and have a look.
http://members.chello.nl/keepitcool/download.html


Any comments appreciated!



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool

--
Regards,
Tom Ogilvy

smi wrote in message
...
Hello,

Thank you very much for your time for helping me in the past. I have a
question and I can not find any where in the Google search or book....
I need to use VBA to set the paper custom length and width for my

printing.
Width = 6.5 inches
Length = 8.5 inches

Long




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Setting printer paper

I suggest you use a new workbook and record a macro that does this.
Then edit the subroutine and place in your application.
Bernard

"smi" wrote in message
...
Hello,

Thank you very much for your time for helping me in the past. I have a
question and I can not find any where in the Google search or book....
I need to use VBA to set the paper custom length and width for my

printing.
Width = 6.5 inches
Length = 8.5 inches

Long




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Setting printer paper

custom page size is set in the print options dialog, so it wouldn't be
recorded as it isn't an excel action.

--
Regards,
Tom Ogilvy

Bernard V Liengme wrote in message
...
I suggest you use a new workbook and record a macro that does this.
Then edit the subroutine and place in your application.
Bernard

"smi" wrote in message
...
Hello,

Thank you very much for your time for helping me in the past. I have a
question and I can not find any where in the Google search or book....
I need to use VBA to set the paper custom length and width for my

printing.
Width = 6.5 inches
Length = 8.5 inches

Long






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
printer paper will not advance bob5 Excel Discussion (Misc queries) 2 March 27th 10 04:10 PM
How to change the printer paper source for all worksheets in a wrk Joe Excel Discussion (Misc queries) 14 October 18th 07 10:43 PM
Default printer setting John Excel Discussion (Misc queries) 1 March 22nd 07 03:20 PM
Printer Multiple Worksheets with a particular Printer Setting PP[_2_] Excel Worksheet Functions 0 March 14th 07 02:02 PM
how do i elarge a printout of worksheet to cover printer paper [email protected] Excel Worksheet Functions 1 February 17th 06 12:16 AM


All times are GMT +1. The time now is 07:04 PM.

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"