Bass71
MIS
- Jun 21, 2001
- 79
Hi:
I need to evaluate only part of a text string. Is there a function that evaluates only part of a string and if that condition is met, then it triggers the "then" of my if-then statement?
Ex:
Dim Jan As Date
Jan = DateValue("1/1"
If ActiveCell.Value = "January" Then
ActiveCell(2, 8).Value = Jan
<<In the cell that's being evaluated, there are numbers after the "January", so I need the condition to be satisfied when the word January, alone, is evaluated.
Thanks for your help...................
I need to evaluate only part of a text string. Is there a function that evaluates only part of a string and if that condition is met, then it triggers the "then" of my if-then statement?
Ex:
Dim Jan As Date
Jan = DateValue("1/1"
If ActiveCell.Value = "January" Then
ActiveCell(2, 8).Value = Jan
<<In the cell that's being evaluated, there are numbers after the "January", so I need the condition to be satisfied when the word January, alone, is evaluated.
Thanks for your help...................