Thanks that static thing worked
Another Excel VB question coming, sorry!
Basically I have to check if the first letter in a cell is either D of G, and then perform an action. But I've tried this and it doesn't work:
If Selection = "D" & "*" Then
Do something
ElseIf Selection = "G" & "*" Then
Do something else.
End if
Buy even when the cell contains a first letter od D, it just skips that block.
Any help??
Thanks,
D
Another Excel VB question coming, sorry!
Basically I have to check if the first letter in a cell is either D of G, and then perform an action. But I've tried this and it doesn't work:
If Selection = "D" & "*" Then
Do something
ElseIf Selection = "G" & "*" Then
Do something else.
End if
Buy even when the cell contains a first letter od D, it just skips that block.
Any help??
Thanks,
D