Anyone code there?

agonysWeeper

Board Regular
Joined
Feb 4, 2011
Messages
146
Anyone has a code that make zoom setup like my 50 sheets in 1 workbook 45 of them coding to be the same zoom such as 75%.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi

Rather than use code, you can select all of the sheets by right clicking one of the sheet names > select menu option 'Select All Sheets' > then set the zoom to 75%. This will change the zoom for all sheets. To change it to something else for the other 5 sheets is now not such a big task.

Andrew
 
Upvote 0
Something like this maybe:

Code:
Sub Macro1()
    Application.ScreenUpdating = False
    'records current sheet
    Set c = ActiveSheet
    'sets all zooms to 75%
    Sheets.Select
    Sheets(1).Activate
    ActiveWindow.Zoom = 75
    'set smaller list of selected sheets to alternate zoom (change to suit)
    a = Array("Sheet1", "Sheet2", "Sheet3")
    Sheets(a).Select
    Sheets(a(0)).Activate
    ActiveWindow.Zoom = 200
    'returns view to starting sheet
    c.Activate
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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