+ Reply to Thread
Results 1 to 10 of 10

How to Show Userform and Hide Workbook/Worksheet

  1. #1
    Registered User
    Join Date
    06-20-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2013
    Posts
    12

    How to Show Userform and Hide Workbook/Worksheet

    I made an add in,
    when I click my add in, I want to only show my user form and hide my workbook (made on user form on this workbook),
    but the previous workbook or other workbook still open

    I tried this code but when the user form open and all of the open workbook on excel hide as well.
    Please Login or Register  to view this content.
    Appreciate if you can help me..

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: How to Show Userform and Hide Workbook/Worksheet

    Try:
    Please Login or Register  to view this content.
    Instead of the application.visible line.

  3. #3
    Registered User
    Join Date
    06-20-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2013
    Posts
    12

    Re: How to Show Userform and Hide Workbook/Worksheet

    Thanks for your response,
    I already tried, it works only when I have already previous workbook, and then open myworkbook (userfrom in this workbook).
    but when I click my add in, the previous workbook hide too.

    code on module for my add in,
    when i tried using "ActiveWorkbook.Windows(1).Visible = False"
    it's not work

    Please Login or Register  to view this content.
    Last edited by ays_punk; 06-29-2013 at 10:08 AM.

  4. #4
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: How to Show Userform and Hide Workbook/Worksheet

    Have you tried fully qualifying the workbook you would like to hide?

    Ex:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-20-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2013
    Posts
    12

    Re: How to Show Userform and Hide Workbook/Worksheet

    Thanks Xero,

    It works, I will try in several case if there are any error I would let you know

  6. #6
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: How to Show Userform and Hide Workbook/Worksheet

    Please take the time to show the thread as solved.

    And if you don't mind clicking the add reputation button (*) below.

  7. #7
    Registered User
    Join Date
    06-20-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2013
    Posts
    12

    Re: How to Show Userform and Hide Workbook/Worksheet

    It works, but before it works always show error message, still find another solution

  8. #8
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655
    What's the error?
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  9. #9
    Registered User
    Join Date
    06-20-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2013
    Posts
    12

    Re: How to Show Userform and Hide Workbook/Worksheet

    Find the solution, this code is really works.
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    06-20-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2013
    Posts
    12

    Re: How to Show Userform and Hide Workbook/Worksheet

    run-time error '13'
    type mismatch
    Quote Originally Posted by XeRo Solus View Post
    What's the error?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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