+ Reply to Thread
Results 1 to 4 of 4

Macro - Open one file then close another

  1. #1
    Registered User
    Join Date
    01-02-2013
    Location
    NY
    MS-Off Ver
    Excel Office 365
    Posts
    49

    Macro - Open one file then close another

    I have an excel file, abc.xlsm, which is open and I want to open another file, xyz,xlsm, then close abc.xlsm.

    Can anyone assist with a macro to accomplish this process? Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    08-13-2012
    Location
    Gardony, Hungary
    MS-Off Ver
    Excel 2003
    Posts
    558

    Re: Macro - Open one file then close another

    Something like this should do it:
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Macro - Open one file then close another

    Hi

    Try this:

    abc.xlsm

    xyz.xlsm

    Open file abc. then open xyz.
    Click *, if my suggestion helps you. Have a good day!!

  4. #4
    Registered User
    Join Date
    01-02-2013
    Location
    NY
    MS-Off Ver
    Excel Office 365
    Posts
    49

    Re: Macro - Open one file then close another

    How could I do this if the first file abc.xlsm could change? Meaning, I don't know what the name of this file could be, but, when I open the other file, xyz.xlsm, I want the other file, to then be active, close it, and then have the xyz.xlsm to stay open?

+ 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