Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Greetings,
Has anyone got a ready made UDF to convert say "2goa(T)" to "_goa_T_" TIA -- David |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi David
Not a UDF but a formula =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"2","_"),")", "_"),"(","_") -- Regards Roger Govier "David" wrote in message ... Greetings, Has anyone got a ready made UDF to convert say "2goa(T)" to "_goa_T_" TIA -- David |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
'---------------------------------------------------------------------
Function ReFormat(Inp As String) As String '--------------------------------------------------------------------- Dim oRegExp As Object Set oRegExp = CreateObject("VBScript.RegExp") With oRegExp .Global = True .Pattern = "[\\0-9(){}\[\]\ £\$%^&*]" ReFormat = .Replace(Inp, "_") End With End Function -- HTH RP (remove nothere from the email address if mailing direct) "David" wrote in message ... Greetings, Has anyone got a ready made UDF to convert say "2goa(T)" to "_goa_T_" TIA -- David |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to convert text into range reference? | Excel Worksheet Functions | |||
Convert text in cell to a range name for formula | Excel Worksheet Functions | |||
convert text to number for a range of data in a column | Excel Discussion (Misc queries) | |||
convert a range of lowercase text to upper text or vice versa | Excel Worksheet Functions | |||
Convert range of text to values | Excel Programming |