PC Review


Reply
Thread Tools Rate Thread

How do I fit to 1 page on entire workbook

 
 
Val Mc
Guest
Posts: n/a
 
      17th Nov 2009
I have approx. 200 sheets in my workbook and I need to fit each sheet to one
page. I can do it individually ( ie. page set up or format painter) but it
takes time. Can I convert the entire workbook to print to 1 page?
 
Reply With Quote
 
 
 
 
Jacob Skaria
Guest
Posts: n/a
 
      17th Nov 2009
You can try out the below macro. If you are new to macros..

--Set the Security level to low/medium in (Tools|Macro|Security).
--From workbook launch VBE using short-key Alt+F11.
--From menu 'Insert' a module and paste the below code.
--Get back to Workbook.
--Run macro from Tools|Macro|Run <selected macro()>


Sub FitWorkbookToOneOne()
Dim intTemp As Integer
For Each sh In ActiveWorkbook.Sheets
With sh.PageSetup
.Orientation = xlPortrait
.PaperSize = xlPaperA4
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = 1
End With
Next
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Val Mc" wrote:

> I have approx. 200 sheets in my workbook and I need to fit each sheet to one
> page. I can do it individually ( ie. page set up or format painter) but it
> takes time. Can I convert the entire workbook to print to 1 page?

 
Reply With Quote
 
EricG
Guest
Posts: n/a
 
      17th Nov 2009
You should be able to select all 200 sheets at once (select the first one,
then "Shift-Click" on the last one to select them all). Then go into Page
Setup and select the "Fit to 1 page tall by 1 page wide" option, and set any
other options you desire to have in common amongst those sheets.

HTH,

Eric


"Val Mc" wrote:

> I have approx. 200 sheets in my workbook and I need to fit each sheet to one
> page. I can do it individually ( ie. page set up or format painter) but it
> takes time. Can I convert the entire workbook to print to 1 page?

 
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
How to apply page number continous for entire workbook jai Microsoft Excel Misc 1 1st Apr 2008 03:53 PM
Copy page format into an entire workbook =?Utf-8?B?bWRlYW5kYQ==?= Microsoft Excel Worksheet Functions 2 3rd Aug 2005 08:12 PM
Page Setup for entire workbook chrisn Microsoft Excel Misc 2 5th May 2004 05:26 PM
How Can I Apply Page Setup to Entire Workbook evan Microsoft Excel Misc 2 19th Apr 2004 06:39 PM
trouble printing entire workbook with different page layouts Fraser Howe Microsoft Excel Misc 1 1st Aug 2003 12:59 PM


Features
 

Advertising
 

Newsgroups
 


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