Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
My program is supposed to read dates out of the spreadsheet, but
sometimes there are text strings instead. On these instances I need to write an if statement telling the program to go elsewhere when it encounters this string. This may be really simple, but when i type If MyDate = "TK" then blah blah blah.... i get a mismatch error on the "TK" part. am i doing something wrong there? what is the proper way to compare a text string to a variable. and i know MyDate is getting the "tk" cause i had a message box pop up to tell me the value of it right above it. thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF Statement - compare to coloured cell | Excel Worksheet Functions | |||
using IF statement to compare text | Excel Worksheet Functions | |||
If statement to compare for wildcard value in another cell. | Excel Worksheet Functions | |||
compare TIME in IF statement | Excel Programming | |||
compare time in IF statement | Excel Worksheet Functions |