+ Reply to Thread
Results 1 to 5 of 5

Hidden Rows with VBA - Cannot Unhide

Hybrid View

  1. #1
    Registered User
    Join Date
    04-30-2010
    Location
    Moose Jaw, SK
    MS-Off Ver
    Excel 2007
    Posts
    8

    Hidden Rows with VBA - Cannot Unhide

    I am very happy that I found this forum. I have been beating my head against my desk for way too long!

    Here's my problem:

    I have a series of toggle buttons that hide and unhide rows based on the number of days between 2 dates. If the number of days are such that all rows end up being hidden, I cannot get them back! I can get one back, but that is all.

    I can't express how grateful I would be for someone out there to help me...

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Hidden Rows with VBA - Cannot Unhide

    Welcome to the forum.

    Change the button properties to not move or size with cells.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    04-30-2010
    Location
    Moose Jaw, SK
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Hidden Rows with VBA - Cannot Unhide

    It seems as though I should have waited a couple of minutes before posting!

    I was attempting to hide/unhide cells in the following range:
    Range(Range("A5"), Range("A65336").End(xlUp))

    If I change that to read:
    Range("A5:A7000")

    it works fine. I don't yet know why, but at least it's working.

    shg, thank-you for the welcome and thank-you for the reply!

  4. #4
    Registered User
    Join Date
    04-30-2010
    Location
    Moose Jaw, SK
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Hidden Rows with VBA - Cannot Unhide

    Sorry! I just realized that I posted in the "Access" section of the forums. I should have been in the "Excel" section.
    My bad.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Hidden Rows with VBA - Cannot Unhide

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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