LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default XP running out of memory when using macro

Hi thanks for the rplies,
I have decided to start from scratch with this workbook so the tips
will come in very usefull.
Howvever I have another question. I am using the below code to sort the
data from one sheet (by Team Name) then copy onto another. I have used
the "CurrentRegion" as the workload will vary from week to week.
However after running the macro it always errors with "the paste method
of worksheet class faild".I have tried using paste values only but
still no luck.

Sheets("DAY 1 CUTTING LIST").Select
ActiveWindow.SmallScroll ToRight:=4
Selection.AutoFilter Field:=10, Criteria1:="TEAM B"
ActiveWindow.ScrollColumn = 1
Range("A10").CurrentRegion.Copy Sheets("DAY 1 TEAM
B").Range("A10")
Range("A10").Select
ActiveSheet.Paste
Range("A10").Select
Sheets("DAY 1 CUTTING LIST").Select

Many Thanks

J



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

 
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
XL 2007 - Out of Memory - memory leak/bug? PCLIVE Excel Discussion (Misc queries) 0 March 23rd 09 03:31 PM
Copy/Paste - Running out of Memory Cheval New Users to Excel 1 October 12th 06 01:40 PM
Macro Error...OUT OF MEMORY G118 Excel Discussion (Misc queries) 1 October 15th 05 09:35 PM
Launch Macro in Access via Macro running in Excel??? dgrant Excel Programming 1 September 24th 03 01:38 PM
Not enough Memory running macro Rich96 Excel Programming 2 September 19th 03 11:58 PM


All times are GMT +1. The time now is 09:45 PM.

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

About Us

"It's about Microsoft Excel"