+ Reply to Thread
Results 1 to 2 of 2

How to Open 2nd workbook from userform, then close 2nd Userform

  1. #1
    Registered User
    Join Date
    05-09-2012
    Location
    England
    MS-Off Ver
    Excel 2013
    Posts
    21

    How to Open 2nd workbook from userform, then close 2nd Userform

    What I would like to do is to be able to open a second workbook from a user form, preform some work on it then save and come back to the same place in the original user form.

    So in steps:

    1 : user clicks command button to open user form
    2: user then clicks on command button on userform that opens 2nd workbook via a yes / no message box, but closes userform on 1st workbook (would be ideal if this could stay open, but hidden)
    3: user then does work on 2nd workbook,
    4: userform on 2nd workbook saves then activates the 1st workbook and reopens the userform

    This is where no matter what I try I cant get the command button on the 1st userform to be clicked automatically so the yes / no message box appears.


    This is part of the code in the 2nd sheet commandbutton that saves / closes / opens

    Please Login or Register  to view this content.
    ABC is the 1st workbook
    xyz is the 2nd workbook

    This is the code on the 1st workbook I use to call on the 2nd workbook

    Please Login or Register  to view this content.

    Can anyone help, or point me in the correct direction?

  2. #2
    Registered User
    Join Date
    05-09-2012
    Location
    England
    MS-Off Ver
    Excel 2013
    Posts
    21

    Re: How to Open 2nd workbook from userform, then close 2nd Userform

    Bump, anyone?

+ 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