ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how to create a zoom butom in vba excel (https://www.excelbanter.com/excel-programming/434696-how-create-zoom-butom-vba-excel.html)

vvv

how to create a zoom butom in vba excel
 
hey guys how do I create a button (vba code) that upon each click changes the
zoom of the workshet?

BSc Chem Eng Rick

how to create a zoom butom in vba excel
 
Just insert the button on the spreadsheet and assign the following macro to
it. This macro will always zoom to 75% but you can set whatever you want.

Sub ZoomSheet()
ActiveWindow.Zoom = 75
End Sub

If this helps please click "Yes"
<<<<<<<<<<

"vvv" wrote:

hey guys how do I create a button (vba code) that upon each click changes the
zoom of the workshet?



All times are GMT +1. The time now is 05:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com