To all who have helped with the previous posts I thank you again. That issue is resolved. My trouble now is creating a formula that evaluates the text in one cell and depending on what it is change the text in another.
ex
cell a1 = "sunglasses"
now if cell a1 on sheet2 = "Always dark"
I need to remove the "Sunglasses" from the first cell.
I've come up with some code but I have trouble placeing the value on a different sheet
Thanks
M
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim tText$
If ActiveCell.Address = ("$A$8"
Then
With Range("a8"
tText = Range("a8"
.Value
Select Case tText
Case "S"
Sheet1.Select
Range("a1"
.Value = "Ride"
Exit Sub
Case "P"
Sheet1.Select
Range("a1"
.Value = "Sleep"
Exit Sub
End Select
End With
End If
End Sub
ex
cell a1 = "sunglasses"
now if cell a1 on sheet2 = "Always dark"
I need to remove the "Sunglasses" from the first cell.
I've come up with some code but I have trouble placeing the value on a different sheet
Thanks
M
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim tText$
If ActiveCell.Address = ("$A$8"
With Range("a8"
tText = Range("a8"
Select Case tText
Case "S"
Sheet1.Select
Range("a1"
Exit Sub
Case "P"
Sheet1.Select
Range("a1"
Exit Sub
End Select
End With
End If
End Sub