Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
copying macro
Hi,
I use this macro and every time it runs the Spreadsheet gets bigger and slower. By the end of the month it has grown from 127 Kb to 1,238 Kb and is very slow to open or update. The first part of the macro copy yesterday data further down the spreadsheet, so I can see where it has changed and by how much. The second part opens another spreadsheet copys the data and then closes the spreadsheet. I need to find what the extra part is and how I stop copying it across. ' Yesterdays Windows("Contracts_Capacity.xls").Activate Sheets("Shaped_Generation").Select Range("C4:BK8").Select Application.CutCopyMode = False Selection.Copy Range("C11").Select Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _ False, Transpose:=False ' Add New Planned Generation Workbooks.Open FileName:= _ "\\rimmer\trader\MarkS\Update Position\Planned_Generation.xls" Range("A1:BK6").Select Selection.Copy Windows("Contracts_Capacity.xls").Activate Sheets("Shaped_Generation").Select Range("A3").Select Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _ False, Transpose:=False MarkS |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
copying macro
Don't see anything in your code that would cause that kind of growth.
-- Regards, Tom Ogilvy MarkS wrote in message ... Hi, I use this macro and every time it runs the Spreadsheet gets bigger and slower. By the end of the month it has grown from 127 Kb to 1,238 Kb and is very slow to open or update. The first part of the macro copy yesterday data further down the spreadsheet, so I can see where it has changed and by how much. The second part opens another spreadsheet copys the data and then closes the spreadsheet. I need to find what the extra part is and how I stop copying it across. ' Yesterdays Windows("Contracts_Capacity.xls").Activate Sheets("Shaped_Generation").Select Range("C4:BK8").Select Application.CutCopyMode = False Selection.Copy Range("C11").Select Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _ False, Transpose:=False ' Add New Planned Generation Workbooks.Open FileName:= _ "\\rimmer\trader\MarkS\Update Position\Planned_Generation.xls" Range("A1:BK6").Select Selection.Copy Windows("Contracts_Capacity.xls").Activate Sheets("Shaped_Generation").Select Range("A3").Select Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _ False, Transpose:=False MarkS |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
copying macro
how then do I find what is causing the spreadsheet to grow
MarkS -----Original Message----- Don't see anything in your code that would cause that kind of growth. -- Regards, Tom Ogilvy MarkS wrote in message ... Hi, I use this macro and every time it runs the Spreadsheet gets bigger and slower. By the end of the month it has grown from 127 Kb to 1,238 Kb and is very slow to open or update. The first part of the macro copy yesterday data further down the spreadsheet, so I can see where it has changed and by how much. The second part opens another spreadsheet copys the data and then closes the spreadsheet. I need to find what the extra part is and how I stop copying it across. ' Yesterdays Windows("Contracts_Capacity.xls").Activate Sheets("Shaped_Generation").Select Range("C4:BK8").Select Application.CutCopyMode = False Selection.Copy Range("C11").Select Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _ False, Transpose:=False ' Add New Planned Generation Workbooks.Open FileName:= _ "\\rimmer\trader\MarkS\Update Position\Planned_Generation.xls" Range("A1:BK6").Select Selection.Copy Windows("Contracts_Capacity.xls").Activate Sheets("Shaped_Generation").Select Range("A3").Select Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _ False, Transpose:=False MarkS . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Copying Macro | New Users to Excel | |||
copying using a macro | Excel Worksheet Functions | |||
Copying a Macro | Excel Discussion (Misc queries) | |||
copying with a Macro | Excel Worksheet Functions | |||
Copying with a macro | Excel Worksheet Functions |