With Visual Basic, you can use very large strings. However, the requirements of other programs and the way you work with your strings can still cause this error.
To correct this error
Make sure that an expression requiring temporary string creation during evaluation is not causing the error.
Remove any unnecessary applications from memory to create more space.