Results 1 to 7 of 7

AdvancedFilter Error 1004 - works in one Excel 2003 workbook but not another

Threaded View

Drewzen AdvancedFilter Error 1004 -... 04-17-2013, 05:07 AM
davesexcel Re: AdvancedFilter Error 1004... 04-17-2013, 09:18 PM
Drewzen Re: AdvancedFilter Error 1004... 04-18-2013, 02:59 AM
kvramana82 Re: AdvancedFilter Error 1004... 04-18-2013, 03:17 AM
Drewzen Re: AdvancedFilter Error 1004... 04-18-2013, 03:30 AM
JosephP Re: AdvancedFilter Error 1004... 04-18-2013, 03:27 AM
Drewzen Re: AdvancedFilter Error 1004... 04-18-2013, 03:32 AM
  1. #1
    Registered User
    Join Date
    04-16-2013
    Location
    Frankfurt, Germany
    MS-Off Ver
    Excel 2003
    Posts
    4

    AdvancedFilter Error 1004 - works in one Excel 2003 workbook but not another

    Hi,

    I'm new to VBA so generally put together any macros I need by searching forums for other people with similar problems / recording a macro and customising.

    I've got a pretty basic macro I'm using to create unique lists which I want to use for drop-downs. I have to work in Excel 2003 unfortunately as the users don't have anything newer.

    This macro works with absolutely no problems in an otherwise empty Excel 2003 test workbook, but when I use it in the main workbook where I actually need it, I get a 1004 error, saying the advanced filter method of the range object couldn't run (Have to back-translate from German there, so that may not be the precise English wording).



    Sub Unique_Filter()
    '
    ' Unique_Filter Macro
    '
    
    Application.ScreenUpdating = False
    
    
    'Create unique list
    
    
    Sheets("Database").Select
    With Sheets("Database")
        Range("C1", "C65000").AdvancedFilter Action:=xlFilterCopy, copytorange:=Sheets("AuxList").Range("B5"), Unique:=True
       
    End With
    
    Sheets("AuxList").Select
    Application.ScreenUpdating = True
    
    
    End Sub

    What settings in Excel 2003 could be preventing this from working in one workbook when it works fine in another?

    Thanks in advance for anyone with any ideas about what could be causing this!
    Last edited by Drewzen; 04-18-2013 at 03:33 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1