Hi,
I was trying to freeze the cell with the following program. It works with the worksheet of mine.
But the problem is that when the same worksheet sent to another person by mail, this MACRO doesn't work.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim TabOrder As Variant
Static TabPos As Long
TabOrder = Array("B2")
TabPos = IIf(TabPos > UBound(TabOrder), 0, TabPos)
Application.EnableEvents = False
Range(TabOrder(TabPos)).Activate
Application.EnableEvents = True
TabPos = TabPos + 1
End Sub
I was trying to freeze the cell with the following program. It works with the worksheet of mine.
But the problem is that when the same worksheet sent to another person by mail, this MACRO doesn't work.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim TabOrder As Variant
Static TabPos As Long
TabOrder = Array("B2")
TabPos = IIf(TabPos > UBound(TabOrder), 0, TabPos)
Application.EnableEvents = False
Range(TabOrder(TabPos)).Activate
Application.EnableEvents = True
TabPos = TabPos + 1
End Sub