+ Reply to Thread
Results 1 to 7 of 7

Userform visible in another workbook

  1. #1
    Registered User
    Join Date
    12-22-2013
    Location
    Delhi, India
    MS-Off Ver
    Excel 2010
    Posts
    47

    Userform visible in another workbook

    Hi Friends,

    I Have a workbook with 2 userform.
    Userform1 is visible when sheet 1 gets activated
    Userform2 is visible when Sheet 2 gets activated
    Sheet 3 both the Userform are hidden.

    Now when ever i open another workbook the userform are still visible even though the workbook which contains these are inactive. Is there any method by which we can hide the userform when the workbook in which it contained is inactive or minimized?

    Please find attached the dummy file below
    Test Userform.xlsm

    Regards,
    Manish

  2. #2
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: Userform visible in another workbook

    post this in your workbook code:

    Please Login or Register  to view this content.
    also, in each of your two worksheets you can store:
    Please Login or Register  to view this content.
    that way you can add more sheets w/out having to use the worksheet_activate code on every new sheet
    Hope I could help - if your post has been solved don't forget to mark it as such.

    Clicking the * below is a great way to say thanks!

    "Drowning in 10 feet of water isn?t any different than drowning in a million feet. And if you can swim, it doesn?t matter how deep the ocean is. At some level, once you realize you?re in water that?s too deep to stand, you have to have a very different approach," - Joi Ito

  3. #3
    Registered User
    Join Date
    12-22-2013
    Location
    Delhi, India
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Userform visible in another workbook

    Thanks Simarui, for your reply. With your code i am successfully able to hide the userform when ever i am going to another workbook; but on returning back to the original workbook (in this case "Test userform" workbook) the userform is not visible on the activesheet. Can you please help me with this as well.

  4. #4
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: Userform visible in another workbook

    this probably isn't the cleanest way to do it... but:

    Please Login or Register  to view this content.
    seems to be working for me.

  5. #5
    Registered User
    Join Date
    12-22-2013
    Location
    Delhi, India
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Userform visible in another workbook

    Friends, please find the solved dummy file in another forum, and thanks Simarui, i think i was doing it in a wrong way. Thanks for your help.

    Here is the link:-
    http://chandoo.org/forum/threads/use...orkbook.22271/

  6. #6
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Userform visible in another workbook

    Instead of playing with Hide / Unhide..

    try Unload too..

    Please Login or Register  to view this content.
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  7. #7
    Registered User
    Join Date
    12-22-2013
    Location
    Delhi, India
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Userform visible in another workbook

    Thanks Deb, for your suggestion. I will do that.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 7
    Last Post: 11-20-2013, 01:50 PM
  2. UserForm always visible
    By aca in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-10-2008, 06:38 PM
  3. RE: UserForm unloaded still visible
    By Jim Thomlinson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-29-2005, 05:05 PM
  4. [SOLVED] Userform always visible
    By StephanieH in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-23-2005, 05:05 PM
  5. [SOLVED] Shapes, Userform and Visible
    By Joel Mills in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-30-2005, 10:05 PM

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