A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Migrating to Excel 2007



 
 
Thread Tools Display Modes
  #1  
Old November 20th, 2009, 07:59 PM posted to microsoft.public.excel.misc
RussellT
external usenet poster
 
Posts: 26
Default Migrating to Excel 2007

I use the following code to filter data in Exel 2003.
Sheets("DevData").Range(SourceDev).AdvancedFilter Actiion:xlFilterCopy,
CriteriaRange:=Sheets("FilterControl").Range(Crite rion2),
CopyToRange:=Sheets("Results").Range("A10:BH10"), Unique:=False.
Range("SourceDev") is about 50,000 row x 52 column.
The macro works perfectly and returns results in about 2 to 3 seconds. The
same code in Excel 2007 locks up. I've tried to running the same code in
smaller workbooks with 2,500 rows and 52 columns. In 2003 I get results in 2
seconds in 2007 it takes 80 to 90 seconds. Any suggestions on code changes
or setting that will help me. Thanks
  #2  
Old November 20th, 2009, 11:59 PM posted to microsoft.public.excel.misc
Herbert Seidenberg
external usenet poster
 
Posts: 1,113
Default Migrating to Excel 2007

Excel 2007
Try
Action:=xlFilterCopy
instead of
Actiion:xlFilterCopy
Tried 500 by 25 array.
Did not notice any delay.
http://www.mediafire.com/file/ymjmkdytozd/11_20_09.xlsm
  #3  
Old November 22nd, 2009, 04:36 PM posted to microsoft.public.excel.misc
Jon Peltier[_2_]
external usenet poster
 
Posts: 386
Default Migrating to Excel 2007

The code wouldn't compile with this error.

Depending on the computer's memory and processor, Excel 2007 may work
nearly as quickly as 2003, or it may work vastly slower. Particularly on
"large" data sets, where large is smaller than the capacity of 2003
worksheets.

- Jon
-------
Jon Peltier
Peltier Technical Services, Inc.
http://peltiertech.com/



Herbert Seidenberg wrote:
Excel 2007
Try
Action:=xlFilterCopy
instead of
Actiion:xlFilterCopy
Tried 500 by 25 array.
Did not notice any delay.
http://www.mediafire.com/file/ymjmkdytozd/11_20_09.xlsm

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:55 AM.


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