I have a declared a variable 'x' as a string which I initialize with "=" (an equal sign).
Into this string I concatenate " +'worksheetname'!column&row " over about 130 worksheet names.
Essentially The macro looks through 130 worksheets finding the appropriate cell in each and creates a string for that worksheet/cell that I concatenate onto 'x.' I then write 'x' onto its own worksheet.
x is then the formula that sums/adds each of the correct cells in the 130 worksheets.
This all works GREAT while the string length of x is < 130 characters. I get error message '7' -Out of Memory error when len(x)=131 or greater -- or thereabouts.
Should I declare/dimension 'x' as some type other than 'string?' I assume this an excel limiatation, not a limitation of my PC.
I am using Excel 2003.
Thanks
John
Into this string I concatenate " +'worksheetname'!column&row " over about 130 worksheet names.
Essentially The macro looks through 130 worksheets finding the appropriate cell in each and creates a string for that worksheet/cell that I concatenate onto 'x.' I then write 'x' onto its own worksheet.
x is then the formula that sums/adds each of the correct cells in the 130 worksheets.
This all works GREAT while the string length of x is < 130 characters. I get error message '7' -Out of Memory error when len(x)=131 or greater -- or thereabouts.
Should I declare/dimension 'x' as some type other than 'string?' I assume this an excel limiatation, not a limitation of my PC.
I am using Excel 2003.
Thanks
John