Zoom A VBA form

0 Agios

Well-known Member
Joined
Feb 22, 2004
Messages
570
Office Version
  1. 365
Is there a way to zoom a VBA form using vba?
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hi 0 Agios,

Try "Userform1.Zoom 125"

The number being the percentage so 100 is normal, 200 is twice zoom and 50 is half zoom....

Note that this does not change the size of the form itself, it zooms in/out on the objects within the form

Hope this helps,
Cheers,
Alan.
 
Upvote 0
Hi 0 Agios,

Try "Userform1.Zoom 125"

The number being the percentage so 100 is normal, 200 is twice zoom and 50 is half zoom....

Note that this does not change the size of the form itself, it zooms in/out on the objects within the form

Hope this helps,
Cheers,
Alan.

it works Thank you, you also have to add the equal sign.
my user form is adddeduct.
Very useful feature when you have multiple uses.
Thanks again.

adddeduct.Zoom = 80
adddeduct.Width = 750
adddeduct.Height = 100
 
Upvote 0

Forum statistics

Threads
1,221,253
Messages
6,158,835
Members
451,518
Latest member
yeoldeusrename

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