+ Reply to Thread
Results 1 to 9 of 9

Hide & Unhide sheets

Hybrid View

  1. #1
    Registered User
    Join Date
    09-30-2012
    Location
    Sacramento, Ca
    MS-Off Ver
    Excel 2008
    Posts
    11

    Hide & Unhide sheets

    Hi,

    I have a worksheet with multiple sheets and I need help with a Macro to be able to hide & unhide specific sheets...

    Thanks

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Hide & Unhide sheets

    On what basis do you want to Hide/Unhide sheets?
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    09-30-2012
    Location
    Sacramento, Ca
    MS-Off Ver
    Excel 2008
    Posts
    11

    Re: Hide & Unhide sheets

    This workshhet needs to be uploaded into a webpage but only require specific sheets. I just want speed up the process to hide these sheets instead hiding one by one.

    Thanks

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Hide & Unhide sheets

    No No.. How do you decide which Workbooks to hide?

  5. #5
    Registered User
    Join Date
    09-30-2012
    Location
    Sacramento, Ca
    MS-Off Ver
    Excel 2008
    Posts
    11

    Re: Hide & Unhide sheets

    Let say I have sheet1,sheet2,sheet3,sheet4,sheet5 but just want to keep showing sheet4 & sheet5

  6. #6
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Hide & Unhide sheets

    Hi, Zorro9758,

    maybe
    Sheets(Array("Sheet1", "Sheet5", "Sheet7")).Visible = False
    But I would go the other round and copy only those sheets you want to upload to a new workbook.

    CIao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  7. #7
    Registered User
    Join Date
    09-30-2012
    Location
    Sacramento, Ca
    MS-Off Ver
    Excel 2008
    Posts
    11

    Re: Hide & Unhide sheets

    Do you have a macro where I can copy those specific sheets into new worksheet?

  8. #8
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Hide & Unhide sheets

    Hi, Zorro9758,

    just like
    Sheets(Array("Sheet4", "Sheet5")).Copy
    This will copy Sheet4 and Sheet5 to a new workbook.

    Ciao,
    Holger

  9. #9
    Registered User
    Join Date
    09-30-2012
    Location
    Sacramento, Ca
    MS-Off Ver
    Excel 2008
    Posts
    11

    Re: Hide & Unhide sheets

    Great than you for you help!

+ 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