A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
You left out "Set" that is required to assign an object to a variable'
See comment re other syntax error line 18
1 Option Explicit
2
3 Sub AllSheetZoom()
4
5 Dim wSht As Worksheet
6 Dim SvActiveSht As Worksheet
7 Dim strZoom As String
8
9 Set SvActiveSht = ActiveWorkbook.ActiveSheet
10
11 strZoom = InputBox("Zoom percentage?")
12
13 For Each wSht In ActiveWorkbook.Worksheets
14 wSht.Activate
15 ActiveWindow.Zoom = strZoom
16 Next wSht
17
'18 ActiveSheet = SvActiveSht 'Incorrect syntax
18 SvActiveSht.Activate
19
20 End Sub