+ Reply to Thread
Results 1 to 6 of 6

Excel userf form should be visible only when that particular workbook is activated

  1. #1
    Registered User
    Join Date
    07-02-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    40

    Excel userf form should be visible only when that particular workbook is activated

    Hi,
    Can any one help me on this,
    i have two excel workbooks, say A1 and A2.. both having userforms. when i run the userforms in two workbooks,
    problem is when one workbook is activated i can see two userforms on activated workbook. i just need only one one userform should be visible when that particular workbook activated.

    It would be greatfull if any one helps on this.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,767

    Re: Excel userf form should be visible only when that particular workbook is activated

    On workbook de-activate just hide the userforms. On activate load it again


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    07-02-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Excel userf form should be visible only when that particular workbook is activated

    How we can know that userform activated before or not??

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,767

    Re: Excel userf form should be visible only when that particular workbook is activated

    Use

    Please Login or Register  to view this content.
    before hiding the userform, so that if any error encounters like userform is not in open then it will skip that error line and move to the next End Sub code

  5. #5
    Registered User
    Join Date
    07-02-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Excel userf form should be visible only when that particular workbook is activated

    Actually my problem is , when i activate any workbook, two workbooks userforms are visible on one activated workbook

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,767

    Re: Excel userf form should be visible only when that particular workbook is activated

    Please refer post #2

+ 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. Form with activated worksheet
    By jovir in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-13-2013, 07:52 AM
  2. Copy from an non-activated workbook and paste into the active one
    By Ilias1987 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-05-2012, 05:58 PM
  3. VBA : Workbook which is open Already is not getting activated
    By Gurushankar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-08-2011, 01:30 PM
  4. Macro to select the first unlocked visible cell when a sheet is activated
    By gazza365 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2011, 02:01 AM
  5. Excel Form only Visible on Start up
    By radar_jynx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-09-2009, 07:04 AM

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