Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
On Sat, 23 Feb 2008 09:35:00 -0800, Jerry
wrote: Supplemental to initial post: Have a column that contains names, numbers, symbols and spaces. I need to substitute all symbols and spaces with a hyphen, and alpha characters in lower case. Thank you, Jerry If you consider a number to be an alpha character, then use the code below; if not, remove 0-9 from re.pattern below. To implement this, see my first response to you earlier in this thread. ========================= Option Explicit Function NonAlphaDash(str As String) As String Dim re As Object Set re = CreateObject("vbscript.regexp") re.Global = True re.Pattern = "[^a-z0-9]" NonAlphaDash = re.Replace(LCase(str), "-") End Function ========================== --ron |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find alpha all characters | Excel Discussion (Misc queries) | |||
change column heading names from numbers to alpha characters | Excel Discussion (Misc queries) | |||
change Excel column headings from numbers to alpha characters | Excel Worksheet Functions | |||
Alpha characters problem? | Excel Worksheet Functions | |||
Check for Alpha characters | Excel Discussion (Misc queries) |