Logical String Evaluation
I was responding to Mark.
--
HTH
RP
(remove nothere from the email address if mailing direct)
"VBA Dabbler" wrote in message
...
No, I want to evaluate the string as though it were 'code', and the string
can change for subsequent evaluations.
The example I gave, however, would error on 'Type mismatch'.
Thanks,
VBA Dabbler
"Bob Phillips" wrote:
I think you mean
Application.Evaluate(month = 4)
as month is a variable, which seems a pointless use of Evaluate to me
when
you can do an If
--
HTH
RP
(remove nothere from the email address if mailing direct)
"Mark Bigelow" wrote in message
oups.com...
Try:
Application.Evaluate("Month=4")
Mark
VBA Dabbler wrote:
Does anyone know how to evaluate a logical string in VBA? An
example
of one
is:
"Month=4"
If the variable 'Month' is 4, then the string would be true.
Thanks,
VBA Dabbler
|