+ Reply to Thread
Results 1 to 2 of 2

Error 1004 (unable to set the hidden property of the range class)

  1. #1
    Registered User
    Join Date
    03-13-2011
    Location
    singapore
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    10

    Error 1004 (unable to set the hidden property of the range class)

    Hi,

    I am having some issues with my excel marco that was being done by another colleague of mine ...

    I have attached the command for the macro,

    Please Login or Register  to view this content.
    regards,
    Alex
    Attached Images Attached Images
    Last edited by pike; 03-13-2011 at 11:16 PM. Reason: add code tags for newbie pm rule

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,220

    Re: Error 1004 (unable to set the hidden property of the range class)

    Hey Alex,

    It looks like the error is in the Selection.AutoFilter step. There are all these columns selected and you call for an AutoFilter. AutoFilters are done with Tables so Excel is confused on what you want done.

    You should set a breakpoint in the code and step through it one statement at a time to see which is giving the error, like I did. Then you need to examine what state the worksheet is in and if the VBA command makes any sense.

    Here is a good source http://www.cpearson.com/excel/Debug.htm

    I'd comment out that AutoFilter step and see what happens. You may be a star!
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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