+ Reply to Thread
Results 1 to 4 of 4

Run time error 1004: Unable to set hidden property of range class

  1. #1
    Registered User
    Join Date
    08-06-2013
    Location
    Dubai
    MS-Off Ver
    Excel 2010
    Posts
    21

    Run time error 1004: Unable to set hidden property of range class

    Hi there,

    I am completely new to VBA coding on Excel (just living off tit-bits from the net) and would need some help.

    Have a sheet wherein BW2 is an Option Button when clicked hides or opens AK: BV. All works fine as long as sheet is unprotected.

    However once sheet is protected, the Option buttons dont function thereby throwng up the error as listed on the subject line.

    Would need some guidance on this please.


    Please Login or Register  to view this content.
    Thanks,
    Saviobluefox
    Last edited by SAVIOBLUEFOX; 08-06-2013 at 10:25 AM.

  2. #2
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Run time error 1004: Unable to set hidden property of range class

    Hi SAVIOBLUEFOX,

    welcome to the forum.
    Please put code tags around your code for easier reading.

    The way to go would be to unprotect the sheet, run the code and then protect it again.
    In your example, it'd look like this :

    Please Login or Register  to view this content.
    Please click the * below if this helps
    Please click the * below if this helps

  3. #3
    Registered User
    Join Date
    08-06-2013
    Location
    Dubai
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Run time error 1004: Unable to set hidden property of range class

    Hi JasperD,

    Thanks heaps for coming back to me so quickly. And yes, the code you suggested works

    Also thanks for guiding on the code wrap ups. I have now done it above just to try (better late than never)

    Thanks again,
    SBF

  4. #4
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Run time error 1004: Unable to set hidden property of range class

    Glad to be of help. Please mark the thread as solved.
    You can do this by clicking "thread tools" above your first post and then selecting "mark thread as solved", thanks.

    Happy coding ;-)

    Please click the * below if this helps

+ 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. Run-time error 1004; "Unable to set the Hidden property of the Range Class"
    By danimal_time in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-22-2012, 01:06 PM
  2. 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
  3. 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
  4. Run-time error 1004: Unable to set the hidden property of the Range class.
    By seabee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-14-2011, 05:09 PM
  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

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