R
rob nobel
I would like to understand the Select Case method to use instead of if -
then.
As I understand this structure, the Select Case line should have a
testexpression where I have put ???.
I don't understand what that means and I can't get the following to work
without that. Can someone please explain how to get the following code to
work.
Rob
Select Case ???
Case ActiveCell = Range("R25").Value
ActiveCell.Offset(0, 6).Activate
ufTaxWithheld.Show
Exit Sub
Case ActiveCell = Range("S25").Value
ActiveCell.Offset(0, 7).Activate
ufTaxWithheld.Show
Exit Sub
End Select
then.
As I understand this structure, the Select Case line should have a
testexpression where I have put ???.
I don't understand what that means and I can't get the following to work
without that. Can someone please explain how to get the following code to
work.
Rob
Select Case ???
Case ActiveCell = Range("R25").Value
ActiveCell.Offset(0, 6).Activate
ufTaxWithheld.Show
Exit Sub
Case ActiveCell = Range("S25").Value
ActiveCell.Offset(0, 7).Activate
ufTaxWithheld.Show
Exit Sub
End Select