I've successfully written some code to execute a certain task if the user clicks on a cell. This is done by have a conditional statement in the Work Sheet code.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$B$13" And Target.Value = "" Then
"code continues here but omitted to save space"
This code actually needs to needs to kick-off if the user clicks on any of the cells below:
$B$13 $C$13 $D$13 $E$13 $F$13
$B$14 $C$14 $D$14 $E$14 $F$14
$B$15 $C$15 $D$15 $E$15 $F$15
I'm trying to avoid a long nested IF statement that evaluate for each cell. I thought about the Select Case statement but I'm not sure if that would save me much coding.
Any thoughts or suggestions would be appreciated.
MP
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$B$13" And Target.Value = "" Then
"code continues here but omitted to save space"
This code actually needs to needs to kick-off if the user clicks on any of the cells below:
$B$13 $C$13 $D$13 $E$13 $F$13
$B$14 $C$14 $D$14 $E$14 $F$14
$B$15 $C$15 $D$15 $E$15 $F$15
I'm trying to avoid a long nested IF statement that evaluate for each cell. I thought about the Select Case statement but I'm not sure if that would save me much coding.
Any thoughts or suggestions would be appreciated.
MP