Hi I have this that zooms if cell you are on cell G4 in Excel 2007 how can I make two cells to zoom, it tried different ways. Please advise hot to make multiple if statements with ELSE.
This does not work.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$G$4" Then
ActiveWindow.Zoom = 100
Else
ActiveWindow.Zoom = 52
End If
If Target.Address = "$F$4" Then
ActiveWindow.Zoom = 100
Else
ActiveWindow.Zoom = 52
End If
End Sub
With one Target address it works! Confused!
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$G$4" Then
ActiveWindow.Zoom = 100
Else
ActiveWindow.Zoom = 52
End If
End Sub
Thanks
Bookmarks