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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|