Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 66
Default How can I set the scaling in my macro?

I am trying to edit my macro so that it selects fit to page 1x1. How can I
move the selector button in my macro to this field?
I have added the following lines in my code and they work fine, but instead
of moving the selector to "Fit To:" it stays at the default of "Adjust To:"

wsNew.PageSetup.FitToPagesWide = 1
wsNew.PageSetup.FitToPagesTall = 1

Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
Default How can I set the scaling in my macro?

Hi

Try this:

With wsNew.PageSetup
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = 1
End With

Regards,
Per


"Gator" skrev i meddelelsen
...
I am trying to edit my macro so that it selects fit to page 1x1. How can I
move the selector button in my macro to this field?
I have added the following lines in my code and they work fine, but
instead
of moving the selector to "Fit To:" it stays at the default of "Adjust
To:"

wsNew.PageSetup.FitToPagesWide = 1
wsNew.PageSetup.FitToPagesTall = 1

Thank you!


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
axis scaling RJDII Charts and Charting in Excel 1 July 17th 08 10:07 PM
Forced Scaling [email protected] Charts and Charting in Excel 0 May 17th 07 06:33 PM
Page Scaling Kim Excel Discussion (Misc queries) 3 April 11th 07 12:41 PM
Scaling within a chart Oliver S Charts and Charting in Excel 1 November 2nd 06 04:53 PM
Dynamic Scaling Cody Charts and Charting in Excel 1 July 11th 05 10:58 PM


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