Visual Basic permits you to use very large strings. However, the requirements of other programs and the way you manipulate your strings may cause this error. This error has the following causes and solutions:
Out of string space
error on some operating systems:
MyString = "Hello"
For Count = 1 To 100
MyString = MyString & MyString
Next Count
Assign the string to a variable of another name.
Remove any unnecessary applications from memory to create more space.
For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).