+ Reply to Thread
Results 1 to 4 of 4

advanced filter on hidden sheets

  1. #1
    Registered User
    Join Date
    01-07-2008
    Posts
    42

    advanced filter on hidden sheets

    Basically, I want this macro to run when I select sheet1 so I have dropped the code into sheet1. The macro runs fine as a stand alone but I get a 1004 protection error when placed into the worksheet module. Sheet "data2" is unprotected. I have tried "calling" the macro from the sheet1 module but it loops. I know it's simple but it's kicking my ***.

    data2 is hidden and workbook is unprotected as of now.

    Please Login or Register  to view this content.
    Last edited by imatomic; 07-06-2009 at 10:52 PM.

  2. #2
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: protection error

    Try this instead:
    Please Login or Register  to view this content.
    NOTE: The Advanced Filter expects the first value in I2 to be a header, not one of the UNIQUE VALUES you want to find.

    NOTE2: You might want to change this thread title since it has nothing to do with sheet protection..."Advanced Filter on hidden sheets" maybe...
    Last edited by JBeaucaire; 07-06-2009 at 10:08 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-07-2008
    Posts
    42

    Advanced Filter on hidden sheets

    That worked... I had to re-select sheet1 though but it got the job done. I have a lot to learn yet.
    Please Login or Register  to view this content.


    Thanks BC

  4. #4
    Administrator JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: protection error

    1) Who's BC?

    2) If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].

    3) While you're in the first post, perhaps changing the thread title would be appropriate since this has nothing to do with sheet protection.

    Suggestion: "Advanced Filter on hidden sheets"

    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)

+ 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