Home |
Search |
Today's Posts |
#10
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Mon, 19 Nov 2007 17:23:31 -0500, "Otto Moehrbach"
wrote: Amen. Otto "Ron Rosenfeld" wrote in message .. . On Mon, 19 Nov 2007 12:33:12 -0800 (PST), iliace wrote: You can nest 64 formulas in Excel 2007, though I doubt anyone would ever want to. The formula length limit is about 8,000 characters. That's quite a jump from seven. For me, when nesting is more than a few deep, I find it simpler to just write (and certainly simpler to debug) a VBA UDF. --ron Here's a little sub that replaces any of a list of various tokens in a src string. You can add to the replacement list by adding characters with in the square brackets. This is just an example. Obviously you could rewrite it as a function, or add code to have it work on a specific range; etc. ======================== Option Explicit Sub foo() Const s As String = "[,;:\s]" 'tokens to replace between [ ] ' \s = space Const src As String = "Now is , the time for all ; :" Dim re As Object Set re = CreateObject("vbscript.regexp") re.Pattern = s re.Global = True Debug.Print re.Replace(src, "") End Sub ============================== --ron |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
substitution: a better method? | Excel Worksheet Functions | |||
Substitution of words | Excel Discussion (Misc queries) | |||
Substitution | Excel Discussion (Misc queries) | |||
substitution | Excel Discussion (Misc queries) | |||
Substitution | Excel Discussion (Misc queries) |