I am running a script to capture data, format, concatenate and paste to new worksheet. The methods I am using have always worked for me in other scripts but in this one after a few iterations I get a crash with an Excel "out of memory" notice. My computer has 4GB of RAM and plenty left.
The offending code is this:
' create HTML output string
Range("L101:L285").Select
Dim cl As Range
Dim myString As String
For Each cl In Selection
myString = myString & cl
Next cl
It will work all day on single iterations or even a couple times through. How or what do I need to clear out? Or use a different variable type?
Thanks
The offending code is this:
' create HTML output string
Range("L101:L285").Select
Dim cl As Range
Dim myString As String
For Each cl In Selection
myString = myString & cl
Next cl
It will work all day on single iterations or even a couple times through. How or what do I need to clear out? Or use a different variable type?
Thanks