Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Print Formatting

I have a variety of macros that create Pivot Tables from a database. Is
there a way to program the default print formatting to landscape and fit on
one page?

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Print Formatting

Figured out the answer to my own question ... but for anyone else that wants
to know:

Sub PrintFormat()
Dim sh As String

sh = ActiveSheet.name

' Formats worksheet to print on one page in Landscape
With Worksheets(sh).PageSetup
.Zoom = False
.FitToPagesTall = 1
.FitToPagesWide = 1
.Orientation = xlLandscape
End With
End Sub

"Chaz" wrote:

I have a variety of macros that create Pivot Tables from a database. Is
there a way to program the default print formatting to landscape and fit on
one page?

Thanks in advance

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
Formatting a cell to print or not to print lob[_2_] Excel Worksheet Functions 1 February 19th 09 10:57 PM
Chart print preview and print formatting rtiguy Charts and Charting in Excel 0 August 19th 08 07:02 PM
Print conditional formatting Sherry Excel Discussion (Misc queries) 3 June 2nd 08 10:04 PM
Print formatting Roger Excel Discussion (Misc queries) 0 February 20th 07 08:48 PM
Formatting all sheets in a workbook to print the same mreed46112 Excel Discussion (Misc queries) 2 February 2nd 05 11:53 PM


All times are GMT +1. The time now is 05:49 AM.

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"