+ Reply to Thread
Results 1 to 2 of 2

Problem with advancedfilter macro

  1. #1
    Forum Contributor
    Join Date
    04-27-2006
    Location
    Cayman Islands
    Posts
    379

    Problem with advancedfilter macro

    Good morning Ladies and Gentlemen,

    I have a little macro, it takes data from one sheet (SHEET_IMPORT_ORACLE), pastes it to another (SHEET_PROJECT_LEADERS), sorts the data then makes a list of unique values in Column D of this list. It all works great, except when I try and hide column A, then it drops out with:

    Run time error '1004':

    The extract range has a missing or illegal filename.
    When debug is selected the last paragraph of code is highlighted. Any ideas?

    And if you'd like to make my code any prettier I'd appreciate it too!


    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    At what point in the code are you trying to hide column A?


    You should always declare your variables - Suggest you read
    http://www.ozgrid.com/VBA/variables.htm



    I am not sure I interperted you code correctly but this will give you an idea on how you can reduce the need for selecting sheets, cells etc

    When copying values it is quicker to populated the range with the values rather copy & paste specials

    Please Login or Register  to view this content.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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