+ Reply to Thread
Results 1 to 7 of 7

AutoFilter does not work in 2003

  1. #1
    Forum Contributor
    Join Date
    03-12-2013
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2007
    Posts
    230

    AutoFilter does not work in 2003

    I have a macro that automatically filters a field in a data set by a value the user can select in a drop-down box. It works perfectly in 2007.

    Please Login or Register  to view this content.
    CityState is a variable that I defined. It is set equal to whatever the user selects from the drop-down list.

    However, one coworker is running Excel 2003 on his computer and this line always appears as an error when running the macro. I've tried a few run-arounds to no avail. Does anybody have a solution to this problem?

    Thanks!

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: AutoFilter does not work in 2003

    You are running it on the active sheet. The cursor has to be on the active sheet before you run the code, otherwise the code will pick up any sheet which happens to be active at the time of running the code.

  3. #3
    Forum Contributor
    Join Date
    03-12-2013
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2007
    Posts
    230

    Re: AutoFilter does not work in 2003

    Thanks for the reply AB33.

    In my original post, I included just 1 out of hundreds of lines of code. Before that line, I have the macro activate the sheet that contains the data and select a cell so that the cursor is on that worksheet.

    Like I said, the macro runs perfectly in 2007, but doesn't work in 2003. I assume it is a compatibility issue.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: AutoFilter does not work in 2003

    I do not see any compatibility issue. It is more likely to do with either drop-down box or Criteria1:=CityState.
    Did you run the code yourself?

  5. #5
    Forum Contributor
    Join Date
    03-12-2013
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2007
    Posts
    230

    Re: AutoFilter does not work in 2003

    Yes. I ran it on both computers that run the two different versions of Excel.

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: AutoFilter does not work in 2003

    Oops!

    This line
    Please Login or Register  to view this content.
    will not work as the limit of rows in 2003 was 65k.

  7. #7
    Forum Contributor
    Join Date
    03-12-2013
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2007
    Posts
    230

    Re: AutoFilter does not work in 2003

    That's it! Thank you so much! I fixed that line everywhere but missed that one.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel 2007 : Will autofilter work?
    By cliffshow in forum Excel General
    Replies: 1
    Last Post: 08-20-2011, 03:42 PM
  2. Autofilter Does not work
    By jhc8255 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-22-2011, 09:34 AM
  3. Which part of my autofilter code doesn't work in 2003?
    By jamesryan in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-19-2010, 08:36 AM
  4. [SOLVED] Autofilter - Excel 2003
    By windsong in forum Excel General
    Replies: 0
    Last Post: 11-10-2005, 03:35 PM
  5. [SOLVED] Autofilter(Top 10...): What does it do? How does it work?
    By Chet Hurd in forum Excel General
    Replies: 3
    Last Post: 05-10-2005, 04:06 PM

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