Home |
Search |
Today's Posts |
#15
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Tom,
You're right, that isn't what I literally asked. I thought my final statement implied a replacement of the 'Month' variable prior to evaluation. I didn't mean to mislead. Sorry for the confusion. Regards, VBA Dabbler "Tom Ogilvy" wrote: That's fine, but that isn't what you originally asked. your code does Evaluate("4=4") But thanks for clearing it up. -- Regards, Tom Ogilvy "VBA Dabbler" wrote in message ... Certainly. Try this. MonthNumber = 4 OperatorString = "=" CriteriaValue = 4 If Evaluate(MonthNumber & OperatorString & CriteriaValue) Then Msgbox "It Works!" End If "Tom Ogilvy" wrote: How about showing us what works. -- Regards, Tom Ogilvy "VBA Dabbler" wrote in message ... Thanks for pointing me back to the evaluate method - I had tried it unsuccessfully and started looking elsewhere. I did get it to work. Thanks, VBA Dabbler "Mark Bigelow" wrote: 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula evaluation | New Users to Excel | |||
Excel interprets Text String as value in logical Argument | New Users to Excel | |||
Multiple Logical Conditions With Date and String Comparison Not wo | Excel Worksheet Functions | |||
logical test and concatenate(string) | Excel Discussion (Misc queries) | |||
Evaluation Sheet | Excel Worksheet Functions |