+ Reply to Thread
Results 1 to 3 of 3

Unable to set hidden property of the Range class

  1. #1
    Registered User
    Join Date
    10-11-2011
    Location
    london, england
    MS-Off Ver
    Excel 2007
    Posts
    4

    Unable to set hidden property of the Range class

    Hi

    There have been quite a few posts relating to this - but none has solved my problem.

    I have some vb that hides rows in a report where it comes across an empty cell:
    Please Login or Register  to view this content.
    I select a parameter from a dropdown and this updates the report. I then call the vb with Call HideRow(Worksheets("3.3").Range("c9.c68"))

    Sometimes I get the message: Runtime error 1004: Unable to set hidden property of the Range class.

    Its intermittant and I've been unable to identify a pattern.
    There are no comments or objects on the sheet.

    Thanks
    Last edited by Leith Ross; 10-11-2011 at 12:25 PM. Reason: Added Code Tags

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Unable to set hidden property of the Range class

    Any merged cells on the sheet?
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  3. #3
    Valued Forum Contributor
    Join Date
    06-19-2010
    Location
    Holywell, N Wales, UK
    MS-Off Ver
    Excel 2013
    Posts
    470

    Re: Unable to set hidden property of the Range class

    Hi Andrew
    Welcome to the forum.
    I can't reproduce the problem either but there are a couple of other forms of syntax you could try:
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    Presumably the sheets don't get protected before you Call your macro?

+ 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