Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to check the first 9 characters in a cell. If
they match then return false. For example: If a cell does not have "includes:" as the first word then delete a specific range. Thanks Gary |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Gary
This little macro will check the active cell and clear a range if "includes:" is not the first 9 characters. Post back if this just gets you started and you need further help. HTH Otto Sub CheckIncludes() If Left(ActiveCell.Value, 9) < "includes:" Then Range("C1:C10").ClearContents Else 'do something else End If End Sub "Gary" wrote in message ... I would like to check the first 9 characters in a cell. If they match then return false. For example: If a cell does not have "includes:" as the first word then delete a specific range. Thanks Gary |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Checking characters , non-printable etc. | Excel Discussion (Misc queries) | |||
Spell Checking with checking cell notes | Excel Discussion (Misc queries) | |||
Checking a cell for only Alphanumerical characters | Excel Worksheet Functions | |||
if function checking for numerical data vs alpha characters | Excel Worksheet Functions | |||
In Excel find characters when multiple characters exist w/i a cel | Excel Worksheet Functions |