Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying Macro John Calder New Users to Excel 2 April 3rd 09 08:00 AM
copying using a macro divad Excel Worksheet Functions 3 June 27th 08 09:49 PM
Copying a Macro Keepsmiling1228 Excel Discussion (Misc queries) 1 March 31st 08 05:31 PM
copying with a Macro DonT Excel Worksheet Functions 2 March 24th 06 07:45 PM
Copying with a macro DonT Excel Worksheet Functions 2 March 23rd 06 03:04 AM


All times are GMT +1. The time now is 11:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"