Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Option Explicit
Dim sLastAddress As String
Private Sub Worksheet_Activate()
Application.EnableEvents = False
'Start the user in the same cell
Me.Range("A1").Select
sLastAddress = Me.Range("A1").Address
Application.EnableEvents = True
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim iColor
MsgBox "You just left cell " & sLastAddress & _
Range(sLastAddress).Font.ColorIndex
'Put code here
' Save the address of the range your in
sLastAddress = Target.Address
End Sub