Consulting

Results 1 to 3 of 3

Thread: Solved: Hide then unhide worksheet

  1. #1

    Solved: Hide then unhide worksheet

    Hi, I have a workbook with 2 worksheets called 'Data' and 'Calendar'. There is a userform on calendar that users use to enter data. What I am trying to do is that when they come to enter the data, it places it all in the workbook, then hides 'Data' and goes straight to 'Calendar'. The next thing I would like to do is when they come to use the commandbtton that updates the information on calendar to data it unhides and goes to that worksheet...

    How easy is this?

    Thanks,

    John.

  2. #2
    VBAX Master Killian's Avatar
    Joined
    Nov 2004
    Location
    London
    Posts
    1,132
    Location
    To hide a worksheet:[VBA]ThisWorkbook.Sheets("Data").Visible = False[/VBA](and =True to show it again)
    To got to a visible sheet:
    [VBA]ThisWorkbook.Sheets("Data").Activate[/VBA]
    K :-)

  3. #3
    Excellent, thank you very much it does just what I wanted.

Posting Permissions

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