#1   Report Post  
Posted to microsoft.public.excel.misc
sparx
 
Posts: n/a
Default VBA Speed up


Can anybody shed some light on how I make the following and lots more
formula's like it run much faster or streamline the code.

Windows("Materials Manager - old").Activate
Sheets("Suppliers").Select
Range("AC6:AV14").Select
Selection.Copy
Windows("Materials Manager.xls").Activate
Sheets("Suppliers").Select
Range("AC6:AV14").Select
ActiveSheet.Paste

The code is jumping between 2 excel files - one called Materials
Manager.xls and another called Materials Manager - old.xls - both files
are open at the same time then the code and lots more liek it copies
different parts of the data from one version to the new version but
runs slow??


--
sparx
------------------------------------------------------------------------
sparx's Profile: http://www.excelforum.com/member.php...o&userid=16787
View this thread: http://www.excelforum.com/showthread...hreadid=536705

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default VBA Speed up


Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual

Workbooks("Materials Manager -
old").Worksheets("Suppliers").Range("AC6:AV14").Co py _
Workbooks("Materials
Manager.xls").Worksheets("Suppliers").Range("AC6:A V14")

Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"sparx" wrote in
message ...

Can anybody shed some light on how I make the following and lots more
formula's like it run much faster or streamline the code.

Windows("Materials Manager - old").Activate
Sheets("Suppliers").Select
Range("AC6:AV14").Select
Selection.Copy
Windows("Materials Manager.xls").Activate
Sheets("Suppliers").Select
Range("AC6:AV14").Select
ActiveSheet.Paste

The code is jumping between 2 excel files - one called Materials
Manager.xls and another called Materials Manager - old.xls - both files
are open at the same time then the code and lots more liek it copies
different parts of the data from one version to the new version but
runs slow??


--
sparx
------------------------------------------------------------------------
sparx's Profile:

http://www.excelforum.com/member.php...o&userid=16787
View this thread: http://www.excelforum.com/showthread...hreadid=536705



  #3   Report Post  
Posted to microsoft.public.excel.misc
sparx
 
Posts: n/a
Default VBA Speed up


Thanks for assisting - Excel file now transfers to new Excel file so
much quicker than before. Thanks for helping.


--
sparx
------------------------------------------------------------------------
sparx's Profile: http://www.excelforum.com/member.php...o&userid=16787
View this thread: http://www.excelforum.com/showthread...hreadid=536705

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
Can you speed UP drag speed? Ryan W Excel Discussion (Misc queries) 1 October 24th 05 06:09 PM
Calculation Speed TJ Excel Discussion (Misc queries) 2 September 22nd 05 04:38 PM
Speed up and slow down, the auto-scroll. Jack Tripper Excel Discussion (Misc queries) 0 September 11th 05 03:54 PM
How to Reduce Spreadsheet Size and Speed ExcelMonkey Excel Worksheet Functions 4 August 9th 05 06:38 PM
How do I change scroll speed? fido Setting up and Configuration of Excel 4 March 18th 05 01:52 AM


All times are GMT +1. The time now is 10:43 AM.

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"