Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm sure this is very simple? However, I'm very keen but, clearly, still
learning! What is wrong with this statement? Actually, I'll qualify that because I know what's wrong with it; it doesn't work! Any ideas why? I know it's got something to do with my using the wild character * which negates the second expression but don't know how else to achieve this? If Cell.Value Like "Hand*" And Cell.Value < "Hand*lch*" Then Basically, I have this statement in a For... statement checking all the cells in a range. However, I want all cells that begin with "Hand" to be selected APART from those that begin with "Hand" but also have "lch" afterwards, such as "Hand LCH". Any ideas? ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ActiveCell.Value Like "Hand*" And Not ActiveCell.Value Like "Hand*lch*"
-- John Green - Excel MVP Sydney Australia "Kobayashi" wrote in message ... I'm sure this is very simple? However, I'm very keen but, clearly, still learning! What is wrong with this statement? Actually, I'll qualify that because I know what's wrong with it; it doesn't work! Any ideas why? I know it's got something to do with my using the wild character * which negates the second expression but don't know how else to achieve this? If Cell.Value Like "Hand*" And Cell.Value < "Hand*lch*" Then Basically, I have this statement in a For... statement checking all the cells in a range. However, I want all cells that begin with "Hand" to be selected APART from those that begin with "Hand" but also have "lch" afterwards, such as "Hand LCH". Any ideas? ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
"CELL("FILENAME") NOT UPDATE AFTER "SAVE AS" ACTION | Excel Discussion (Misc queries) | |||
Help!!! Enter "7" in a cell and Excel changes the "7" to "11" immediately!!! | Excel Discussion (Misc queries) | |||
how do I "freeze" the left hand title column | Setting up and Configuration of Excel | |||
Complex if test program possible? If "value" "value", paste "value" in another cell? | Excel Discussion (Misc queries) |