Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If you ned to locate cells with leading apostrophes and don't mind a little
VBA, then enter and run: Sub leading_tick_locator() Dim r As Range, rSel As Range For Each r In ActiveSheet.UsedRange If r.PrefixCharacter = "'" Then If rSel Is Nothing Then Set rSel = r Else Set rSel = Union(rSel, r) End If End If Next If Not rSel Is Nothing Then rSel.Select End If End Sub It will select all cells with leading apostrophes and ignore embedded apostrophes. Have a pleasant weekend! -- Gary's Student "ExTexan" wrote: I'm trying to see if the text in a cell contains the single quote (or apostrophe). How can I put that in my SEARCH function. Surrounding the single quotes with double quotes, like this SEARCH("'", A1) doesn't work. I know there must be a forcing character to embed special characters in string literals, but the documentation with 2007 Beta 2 is somewhat lacking, or I just can't find it. -- ExTexan |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need some comments on my Utility_Move class module. | Excel Worksheet Functions | |||
numerical integration | Excel Discussion (Misc queries) | |||
Custom functions calculating time arguments Help Desperate | Excel Worksheet Functions | |||
Automatically up date time in a cell | Excel Discussion (Misc queries) | |||
Search function using commas | Excel Worksheet Functions |