I've made some progress, but it's still not doing what I want. And yes, that is a merged cell which I've now named "Member1" and I'm using that instead. Here is everything I have so far:
Dim vSave, cSave As String
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
cSave = "Type member # here"
If ActiveCell.Address = Range("Member1").Address Then
'Had to change to activecell.address because I wanted to use a named cell and it didn't work with target.address
If ActiveCell.Value <> cSave Then vSave = Selection.Value
'This is not working but if I exclude it, the clearcontents works as well as repopulating with "Type member # here" if the cell is blank
Selection.ClearContents
ActiveCell.Font.ColorIndex = 1
Else
If Range("Member1").Value = "" Then
Range("Member1").Value = cSave
Range("Member1").Font.Color = RGB(150, 150, 150)
End If
End If
End Sub
Basically, I want the people to be able to click in the cell, which clears "Type member # here," then type in their member number. If they navigate away from the cell without typing anything, I want it to put "Type member # here" back in the cell. However, if they do type a number in, leave the cell, and then go back to the cell for whatever reason, I don't want it to clear the contents (but if they delete what's in there so it's blank again I want it to put "Type member # here" again. So basically, if there is anything other than cSave, I don't want it to clearcontents.
Thanks so much,
Diana