FitToPagesWide Integer Code & PaperSize Selection

stte

New Member
Joined
Feb 1, 2007
Messages
16
I am doing up a Print Macro for a worksheet.

I would like it to be dynamic such that I could select for certain Tabs in the workbook to be printed as Zoom or Fit to Pages


I have no problem with Zoom but I do have problem writing the codes for FitToPagesWide.

I know these two are mutually exclusive so I have a .Zoom = False before my FitToPagesWide code.

I have looked up the forum a lot of examples provided are

FitToPagesWide = 1

My question is, what if I do not want it to be 1 but 10? And this 10 is to be dynamic i.e. an "input" in Cell E10 in my worksheet "Print Macro"

Also some Tabs I would want to print in A4 and some in A3. How do I make this to be dynamic i.e. an "input" in Cell D10in my worksheet "Print Macro"

Many thanks!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top