string concatenation - Need a Concatenating VBA code to prevent memory issue workaround -


My installation: There are 50,000 lines of data (my line number will increase in the future, so also I have 64000+ Rows have a complete worksheet.) All data is text, no formulas, etc.

The data should be included in column A. open column B is I, in which the data in columns one in the column A will be 60,000 digits or 6kb in the file size. After additional manipulation each cell will become a file.

I have tried to engage in Excel and I go into memory issues. Memory problem occurs when I select the concatenating function in the worksheet and fill it. It crashes at 8200 +/- line My system is 2 GB RAM, Windows XP Professional and Excel 2003. There is a 4 GB disk space

Expect to find the VBA code that will save the memory and will not crash as it is in Excel.

Thanks

Although this is an unusual use for Excel, suppose that Each combination involves emptying some memory before running the operation memory.

It is not that elegant, although you can do 2000 rows, you can copy and paste your column A as a value. Alternatively, removing A2: AC 2002 (data used can not be needed). Turning on automatic calculation can also be helpful.

Normal record with macro from macro recorder You have a macro [relatively located]. Start by selecting what the formula has done

Very raw code:.

sub-macro5 () application .EnableEvents = false. With the screen ending with the false ending .ScreenUpdating = I as long as possible for I = 32 to Selection.Copy ActiveCell.Offset (1, 0) .ange ("A1: A2000"). Select ActiveSheet.Paste Application.CutCopyMode = False ActiveCell.Offset (-1, 0) .Range ("A1: A2000".) Select Selection.Copy Selection.Paste Special Paste: = xlPasteValues, Operation: = xlNone, SkipBlanks: = false, moved: = false Application.CutCopyMode = false ActiveCell.Offset (2000, 0) .Range ("A1"). Select application with next I. EnableEvents = True .ScreenUpdating = End End with End Sub

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -