Your technology certification is waiting. Enroll in Cloud Class ®
'Put the following code in ThisWorkbook code pane. It won't work at all if installed anywhere else
Private Sub Workbook_SheetDeactivate(ByVal Sh As Object)
Dim ws As Worksheet
Dim iCol As Long, iRow As Long
Set ws = ActiveSheet
If ws.Parent Is ThisWorkbook Then
Application.EnableEvents = False
Application.ScreenUpdating = False
iRow = ActiveWindow.ScrollRow
iCol = ActiveWindow.ScrollColumn
ActiveWindow.ScrollRow = iRow
ActiveWindow.ScrollColumn = iCol
Application.EnableEvents = True
Open in new window
The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.
One of a set of tools we're offering as a way of saying thank you for being a part of the community.
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.