Hi,
I am trying to speed up a macro i have which does lots of copy paste functions after some calculations have been completed.
I tried this:
Modelpoint being a loop that goes through various rows..
I only want values but it deleted all the formulas in the engine sheet that was was trying to copy.
This was my starting point:
My macro takes about 20mins to run as I have 3 different parts from the engine that i paste into output sheets.
I think if i can avoid the clipboard I may be able to improve the speed a lot.
Thanks for your help
I am trying to speed up a macro i have which does lots of copy paste functions after some calculations have been completed.
I tried this:
Code:
[INDENT]OutputRow = 3 + ((Modelpoint - 1) * 126)[/INDENT]
Sheets("ENGINE").Range("A348:DZ473").Value = Sheets("Output").Cells(OutputRow, 1).Value
Modelpoint being a loop that goes through various rows..
I only want values but it deleted all the formulas in the engine sheet that was was trying to copy.
This was my starting point:
Code:
[INDENT] Sheets("ENGINE").Activate[/INDENT]
OutputRow = 3 + ((Modelpoint - 1) * 3)
Range("A348:DZ473").Select
Selection.Copy
Sheets("Output").Activate
Sheets("Output").Cells(OutputRow, 5).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, skipBlanks:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, skipBlanks:=False, Transpose:=False
My macro takes about 20mins to run as I have 3 different parts from the engine that i paste into output sheets.
I think if i can avoid the clipboard I may be able to improve the speed a lot.
Thanks for your help