Hello all, back at it again with an easy question for the experts out there. I need the following to happen;
If F7 does not equal blank, and F10 does equal blank, then L10 should be filled with the text "3) Remove Shunt"
If F7 does not equal blank, and F10 does not equal blank, then L10 should be filled with the text "3) Remove 1st Stage Shunt"
Lastly, If F7 equals blank, then L10 equals blank.
I've attached my current code which is not functional. It is placed in the Worksheet Change structure but I'm still learning this stuff and I'm certainly in a bit deeper than my knowledge currently. The failure it's giving is nondescript in my eyes as it just gives a "out of stack space" or it just crashes Excel. Sorry I can't give more information on this.
Thank you...
If F7 does not equal blank, and F10 does equal blank, then L10 should be filled with the text "3) Remove Shunt"
If F7 does not equal blank, and F10 does not equal blank, then L10 should be filled with the text "3) Remove 1st Stage Shunt"
Lastly, If F7 equals blank, then L10 equals blank.
I've attached my current code which is not functional. It is placed in the Worksheet Change structure but I'm still learning this stuff and I'm certainly in a bit deeper than my knowledge currently. The failure it's giving is nondescript in my eyes as it just gives a "out of stack space" or it just crashes Excel. Sorry I can't give more information on this.
Code:
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If "$F$7" <> "" And "$F$10" = "" Then
Range("$L$10").Value = "3) Remove Shunt"
ElseIf "$F$7" <> "" And "$F$10" <> "" Then
Range("$L$10").Value = "3) Remove 2nd Stage Shunt"
Else
Range("$L$10").Value = """"
End If
End Sub
Thank you...