+ Reply to Thread
Results 1 to 6 of 6

Open Workbook, Sheet Minimized VBA

  1. #1
    Registered User
    Join Date
    07-11-2007
    Location
    Orlando, Florida
    Posts
    48

    Open Workbook, Sheet Minimized VBA

    Hi all. Using Excel 2003. I have a question about worksheets. In the single workbook I am creating, I want to have a workbook open and pull up a userform.(I can do this) What I am looking to do is have the worksheets hidden. I have read that you must have one worksheet visible in the workbook. Is there a way to minimize the only visible sheet through VBA? Thanks!

  2. #2
    Registered User
    Join Date
    08-19-2007
    Posts
    40

    Open Workbook, Sheet Minimized VBA

    Hi desk.doc

    You cannot minimize worksheet tabs, but are able to minimize the window containing these tabs using the following.

    Just create a code module and paste the following code samples into your VBA Editor.

    VBA Code to minimize ActiveWindow containing Tabs

    Please Login or Register  to view this content.
    To hide all worksheets on the active worksheet, use the following.

    Please Login or Register  to view this content.

    To unhide hidden worksheets use the following
    This code checks to see if the sheets are hidden, if so, it unhides them, otherwise, Hides them.

    Please Login or Register  to view this content.
    Hope this helps you out.

    Cheers, :-)
    Kind Regards,

    Steven Daniel
    ONTRACK SOFTWARE & TECHNOLOGY SOLUTIONS
    http://www.ontrack-software.com.au/

  3. #3
    Registered User
    Join Date
    07-11-2007
    Location
    Orlando, Florida
    Posts
    48
    Thank you Steven. Am I correct in thinking you have to have one of the sheets visible when you open the workbook?

  4. #4
    Registered User
    Join Date
    08-19-2007
    Posts
    40

    Open Workbook, Sheet Minimized VBA

    Hi Telton

    Yes - you cannot hide all worksheets, one must be visible. Excel won't let you hide all worksheets.

    Another way you can do this is to hide the worksheet tabs via the following

    Please Login or Register  to view this content.
    This will hide all worksheet tabs for the activesheet.

    BTW: Users can also turn this back on via the Tools | Options menu option and clicking on Sheet Tabs to make them visible again.

    Hope this helps

    Cheers, :-)

  5. #5
    Registered User
    Join Date
    07-11-2007
    Location
    Orlando, Florida
    Posts
    48
    Thank you Steven. That helps out immensely!!

  6. #6
    Registered User
    Join Date
    08-19-2007
    Posts
    40

    Open Workbook, Sheet Minimized VBA

    Hi Desk.doc

    Thanks for the feedback. Not a problem, glad that I could help out.

    Cheers,

+ 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