Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 154
Default CUSTOM PRINTING !


This macro will set the page up such that the page will print as two
pages...
Range("A1:N50") will print as one page, and
Range("A51:N90") will print as the second page.

**Please, I will NEED a macro for numerous reasons.

Any help will be appreciated! Thanks

Jay


*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default CUSTOM PRINTING !

I find tools /macro /record new macro very useful.
Here is what it gives for a similar problem

Range("A1:B2").Select
Selection.PrintOut Copies:=1, Collate:=True
Range("A3:E5").Select
Selection.PrintOut Copies:=1, Collate:=True

This can be simplified to
Range("A1:N50").PrintOut Copies:=1, Collate:=True
Range("A51:N90").PrintOut Copies:=1, Collate:=True


"jay dean" wrote:


This macro will set the page up such that the page will print as two
pages...
Range("A1:N50") will print as one page, and
Range("A51:N90") will print as the second page.

**Please, I will NEED a macro for numerous reasons.

Any help will be appreciated! Thanks

Jay


*** Sent via Developersdex http://www.developersdex.com ***

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default CUSTOM PRINTING !

Here is some code which works but not not be the most elegant solution:

Range("A1:N50").Select
With ActiveSheet.PageSetup
.FitToPagesWide = 1
.FitToPagesTall = 1
End With
Selection.PrintOut Preview:=True

Note: the preview option can be deleted if not required.

"JMay" wrote:

Don:

What if either range "extends beyond one page due to column-width
settings being changed"? Is there a way to set each to Auto
FitToOnePage?

Thanks,

Jim May

"Don Guillett" wrote in message
:

Or even
Range("A1:N50").PrintOut
Range("A51:N90").PrintOut

--
Don Guillett
SalesAid Software

"Gleam" wrote in message
...
I find tools /macro /record new macro very useful.
Here is what it gives for a similar problem

Range("A1:B2").Select
Selection.PrintOut Copies:=1, Collate:=True
Range("A3:E5").Select
Selection.PrintOut Copies:=1, Collate:=True

This can be simplified to
Range("A1:N50").PrintOut Copies:=1, Collate:=True
Range("A51:N90").PrintOut Copies:=1, Collate:=True


"jay dean" wrote:


This macro will set the page up such that the page will print as two
pages...
Range("A1:N50") will print as one page, and
Range("A51:N90") will print as the second page.

**Please, I will NEED a macro for numerous reasons.

Any help will be appreciated! Thanks

Jay


*** Sent via Developersdex
http://www.developersdex.com ***





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 154
Default CUSTOM PRINTING !

Thanks Gleam and Don!

Jay

*** Sent via Developersdex http://www.developersdex.com ***
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
VBA Printing Custom Footer on all but last page Caruna Excel Discussion (Misc queries) 2 April 1st 10 10:17 PM
Custom Printing in a Macro Rich Excel Discussion (Misc queries) 7 January 12th 07 05:24 PM
printing on custom paper aschmitz New Users to Excel 4 March 8th 06 09:36 AM
printing custom copies pukka Excel Discussion (Misc queries) 0 November 2nd 05 09:53 PM
Printing Custom Header lfalgi Excel Discussion (Misc queries) 1 January 26th 05 12:16 AM


All times are GMT +1. The time now is 11:39 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"