Runtime error 14 - out of string space
User Reiners, Christian (email@example.com) posted:
I try to convert a big string with regular expressions. Therefore I use an
Now it seems that I have exeeded some limits with strings "Runtime error
14 - out of string space".
Does anyone know why? Is thera a workaround ?
Function ReplaceString( aString as String, pattern as String, replacement as
string ) as String
Dim regEx As Object
Set regEx = CreateObject("VBScript.RegExp")
regEx.Pattern = pattern ' Set pattern.
regEx.IgnoreCase = True ' Make case insensitive.
regEx.Global = True ' Global replacement
On Error Resume Next
ReplaceString = regEx.Replace(aString, replacement) ' Make
Set regEx = Nothing
if (Err <> 0) then
MsgBox "ReplaceString was not successful." & Err & " - " & Error$
aString = ""
On Error Goto 0
Thanks for your help
Testmanager CAS GmbH
Re: Runtime error 14 - out of string space
User Monika Kelley (firstname.lastname@example.org) posted:
String has a maximum size of 32,767 characters, (32 KB).
Maybe you could paste your text into clipboard and do the conversion
with an editor? (Never tried it before)
"Reiners, Christian" wrote: