On my excel sheet when i click on a cell it changes color of another cell. but I need it to go back to the cell that I click so I can type some information in there. How can I do these? (using like a varable thing)
Here is what I got for now.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("C7:Z7")) Is Nothing Then
GOBLACK
Range("a7").Select
Selection.Font.ColorIndex = 3
End If
End Sub
Private Sub GOBLACK()
Range("A7:A150").Select
Selection.Font.ColorIndex = 1
Range("A1").Select
End Sub
thanks for the help.