VBA - Toogle option button for different printing/page layout option

tasic89

New Member
Joined
Apr 12, 2021
Messages
35
Office Version
  1. 2019
  2. 2016
  3. 2013
Platform
  1. Windows
I have specific problem.

I have some excel sheet, that I worked on a lot, so I could do labels and it was made for my old office printer like "perfectly".

Now I am in new office with a new printer, and that printer doesn't print in same layout like an old one, so margins of my excel sheet are "messed up".

Only way to make my excel sheet work, is to put my excel sheet on "1 page" via scale to fit height option.

I will make that, but is there any vba code to put that excel sheet in 2 modes via some button... Like one button is "height option to automatic" and second button "height option to 1 page"...
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,215,777
Messages
6,126,835
Members
449,343
Latest member
DEWS2031

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