Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default VBA to prohibit changes to scale setting in page-setup

No, but you could use the Before_Print() event macro to reset the zoom
before printing.

Put something like this in your ThisWorkbook code module:


Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim wsSheet As Worksheet
For Each wsSheet In ActiveWindow.SelectedSheets
With wsSheet.PageSetup
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = 1
End With
End Sub



In article ,
Phil Hageman wrote:

I am using an auto-open and auto-close sub for a workbook with numberous
worksheets. The worksheets use different settings for scaling in page-setup
which guarantees full-page printing. Problem is, some users modify this
setting, which distorts printed copy. Is there code I could add in the
auto-open to disallow modifications to scale settings, and then to restore
the capability upon close?

Thanks,
Phil

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 160
Default VBA to prohibit changes to scale setting in page-setup

Thanks for your reply - this works. I need to modify it though, to accomodate different scale settings for different worksheets. For example
Worksheet "Scorecard" scale is 95
Worksheet "Financial" scale is 90
Worksheet "Customer" scale is 90
Etc

Can you help me with this

Phil
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 160
Default VBA to prohibit changes to scale setting in page-setup

Another issue comes to light: The worksheets have different print areas
Worksheet "Scorecard" has one range - B1:BA4
Worksheet "Financial" has three ranges - B1:BA32, B33:BA64, B65:BA9
Worksheet "Customer" has three ranges - B1:BA32, B33:BA64, B65:BA9

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
Chart setting scale Ker Charts and Charting in Excel 3 March 11th 09 03:28 PM
Setting Page Setup Newt Excel Discussion (Misc queries) 3 January 7th 08 04:06 PM
setting page setup/print area for multiple sheets [email protected] Excel Discussion (Misc queries) 6 October 27th 07 01:19 PM
Setting chart scale min/max in VBA [email protected] Charts and Charting in Excel 2 January 30th 07 09:11 PM
setting Page Setup on a workbook level [email protected] Excel Discussion (Misc queries) 1 June 14th 06 06:07 PM


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