B
bluegrassstateworker
I have a one-cell-named range called REQT and if there is a value
inserted, I want to go to a worksheet called RFP. The variable
BeenThereAlready ensures this happens only once. I made this one cell
a named range so that any modifications referring a specific cell would
not require a change in code. What I have below is not working and the
solution is simple but I have hit a wall. Any suggestions appreciated.
Private Sub Worksheet_Change(ByVal Target As Range)
If IsNull((Range("REQT").Value)) = False And BeenThereAlready =
False Then
Sheets("RFP").Activate
Sheets("RFP").Range("A1").Select
BeenThereAlready = True
End If
If IsNull((Range("REQT").Value)) = True And BeenThereAlready = True
Then
BeenThereAlready = False
End If
End Sub
inserted, I want to go to a worksheet called RFP. The variable
BeenThereAlready ensures this happens only once. I made this one cell
a named range so that any modifications referring a specific cell would
not require a change in code. What I have below is not working and the
solution is simple but I have hit a wall. Any suggestions appreciated.
Private Sub Worksheet_Change(ByVal Target As Range)
If IsNull((Range("REQT").Value)) = False And BeenThereAlready =
False Then
Sheets("RFP").Activate
Sheets("RFP").Range("A1").Select
BeenThereAlready = True
End If
If IsNull((Range("REQT").Value)) = True And BeenThereAlready = True
Then
BeenThereAlready = False
End If
End Sub