+ Reply to Thread
Results 1 to 8 of 8

Error 1004: Unable to Set Hidden property of the range class...

  1. #1
    Registered User
    Join Date
    06-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    93

    Question Error 1004: Unable to Set Hidden property of the range class...

    Hello friends....

    I have two macros one for an ActiveX Control to hide/unhide rows and another macro for inserting dates and the Worksheet is protected with a password....the macros are as follows for reference
    ....when I click ActiveX Control...a message..Error '1004' Unable to Set hidden property of the range class appears...

    I am unable to find out where the code is wrong and what to do.....

    Please Login or Register  to view this content.

    Thanks in advance...

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,476

    Re: Error 1004: Unable to Set Hidden property of the range class...

    is Sheet1 the sheet you are hiding rows on?

    The error would suggest the active sheet is protected.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Error 1004: Unable to Set Hidden property of the range class...

    Hi jaysakle,

    Please try:

    Please Login or Register  to view this content.
    Regards
    Last edited by Winon; 10-02-2013 at 08:46 AM. Reason: Syntax Error
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  4. #4
    Registered User
    Join Date
    06-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Error 1004: Unable to Set Hidden property of the range class...

    Quote Originally Posted by Andy Pope View Post
    is Sheet1 the sheet you are hiding rows on?

    The error would suggest the active sheet is protected.
    Dear Andy,

    Thank you for considering my problem....

    Yes, Sheet 1 has few hidden rows and which can be unhide as per requirement of the client/user by using an ActiveX control.

    Jay

  5. #5
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Error 1004: Unable to Set Hidden property of the range class...

    Hello jaysakle,

    Will it always be the same rows to Hide or Unhide, or do you want the user to choose which rows to Hide or Unhide?

  6. #6
    Registered User
    Join Date
    06-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Error 1004: Unable to Set Hidden property of the range class...

    Quote Originally Posted by Winon View Post
    Hi jaysakle,

    Please try:

    Please Login or Register  to view this content.
    Regards
    Dear Winon,

    Thanks a lot...

    I tried the code suggested by you....it works nicely...but works only one time...it unhides the rows but unable to hide the same rows when click again....

    Please suggest what to do to rectify it....

    Thanks again

  7. #7
    Registered User
    Join Date
    06-15-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Error 1004: Unable to Set Hidden property of the range class...

    Quote Originally Posted by Winon View Post
    Hello jaysakle,

    Will it always be the same rows to Hide or Unhide, or do you want the user to choose which rows to Hide or Unhide?
    Hi Winon,

    Yes, the same rows always to be hide or Unhide.... on clicking the ActiveX Control.

    Image is inserted for your kind reference....2013-10-03_112346.jpg

    Regards

  8. #8
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Error 1004: Unable to Set Hidden property of the range class...

    Hello jaysakle,

    Thank you for the confirmation.

    Then please try it like this:

    Please Login or Register  to view this content.
    Regards

  9. #9
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Error 1004: Unable to Set Hidden property of the range class...

    Hi jaysakle,

    I see that you have been back on the Forum, after my last post, without any response from you.

    Please advise if your issue has been resolved.

    Thank you,

    Regards

+ 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. [SOLVED] Run time error 1004: Unable to set hidden property of range class
    By SAVIOBLUEFOX in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-06-2013, 10:38 AM
  2. [SOLVED] Runtime error 1004: Unable to set the hidden property of range class
    By Loobrush in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-10-2013, 05:18 AM
  3. Help Please w/ Run-time error '1004' Unable to set the Hidden property of the Range Class
    By ExcelNewbie2534 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-18-2012, 07:38 PM
  4. Error 1004 (unable to set the hidden property of the range class)
    By alex.heng in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2011, 12:45 AM
  5. Error 1004 Unable to set the Hidden Property of the Range Class
    By nld in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-08-2007, 10:56 AM

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