LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Advanced Filter Error


All:

When I run this routine with the CopyToRange of A1:J2000, I get the
following error message:
Run-time error 1004
The extract range has a missing or illegal field name.

When I run it with the CopyToRange set to A1:I2000, it runs without an
error.

The problem that I am having is that my data extends across 209 columns
to HA.

The code below will only return 9 columns.

Is there anything that you can see that I am missing?

'Database range A4:HA1575
'Criteria G1:H2

Sub ApplyFilter() 'Move filtered data to activesheet
Sheets("Orders").Range("Database").AdvancedFilter _
Action:=xlFilterCopy, _
CriteriaRange:=Sheets("Orders").Range("Criteria"), _
CopyToRange:=Range("A1:J2000"), _
Unique:=False
End Sub

Thanks in advance.

Floyd

 
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
Error msg on Advanced Filter Helen Excel Discussion (Misc queries) 0 April 3rd 08 04:52 PM
Advanced Filter - error message Mifty New Users to Excel 2 May 25th 06 07:02 PM
Error using Advanced Filter Unique Records headly Excel Discussion (Misc queries) 5 May 9th 06 01:36 AM
Advanced Filter Error Claret Excel Programming 2 January 24th 06 03:40 PM
advanced filter error 1004 Tove Excel Programming 2 February 28th 05 07:22 PM


All times are GMT +1. The time now is 08:37 AM.

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"