Consulting

Results 1 to 3 of 3

Thread: Solved: display sheet only when call, hide sheet when not in use.

  1. #1

    Solved: display sheet only when call, hide sheet when not in use.

    Hi folks,

    May I know how to hide sheets and display only once they are summoned from a button? And hide them once again when they are no longer an active sheet.

    Thanks in advance.

  2. #2
    Site Admin VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,005
    Location
    Sheets are hidden like this [VBA]Sheets("Sheet1").Visible = False [/VBA]and made visible like this [VBA]Sheets("Sheet1").Visible = True[/VBA]you cannot make all sheets hidden, if you want to hide the only sheet visible in your workbook you must first make another one visible.

    Regards,
    Simon
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

  3. #3
    thanks. I didn't know it was that easy.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •