+ Reply to Thread
Results 1 to 5 of 5

Opening Excel and a specific file at the same time

  1. #1
    Registered User
    Join Date
    08-23-2011
    Location
    Toronto,Ontario
    MS-Off Ver
    Excel 2003
    Posts
    48

    Opening Excel and a specific file at the same time

    I originally posted this in the wrong category.

    I am opening EXCEL through another application. The Excel file that I am opening has an Auto_Open macro in it that is needed for the application. EXCEL is opened by the application by noting the "Excel.exe" path. The file that I am opening is the first of series of numbered files that have sequentially numbered file names. There will be subsequent openings of the different sequenced numbered Excel files. Each new file that opens will look to see if the previous sequence numbered file is open, and if it is it will close the file.

    I don't want to put the first file to open in XLSTART because I don't want it opening every time I open EXCEL since the Auto_Open macro is long and I have to wait for it to finish before opening another file. The files to be opened will be in a subfolder of XLSTART.

    Can this done through EXCEL setup or,

    Can the files that I want to be opened done from the Task Bar "START" button command line with the file names as part of the command line formatting?

    I have several other related programming questions to this post, should they all go in separate threads?

    Thanks,

    Danny,
    Toronto, Ontario
    Last edited by HitTheEXCELerator; 08-27-2011 at 08:28 AM.

  2. #2
    Registered User
    Join Date
    08-23-2011
    Location
    Toronto,Ontario
    MS-Off Ver
    Excel 2003
    Posts
    48

    Re: Opening Excel and a specific file at the same time

    I found an alternate away to fix the problem so how do I indicate this thread is "Solved"

    Danny

    Toronto, Ontario, Canada

  3. #3
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Opening Excel and a specific file at the same time

    Hi Danny,

    If you have resolved the issue, then please mark the thread as SOLVED. If you would like to share your solution for others to see, then please feel free to do so.

    Good luck.

    abousetta

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Opening Excel and a specific file at the same time

    Your post does not comply with Rule 9 of our Forum RULES. If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit. And please never edit a thread in which someone else has responded.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    08-23-2011
    Location
    Toronto,Ontario
    MS-Off Ver
    Excel 2003
    Posts
    48

    Re: Opening Excel and a specific file at the same time

    The problem that I was trying to overcome was that I thought that the first EXCEL file opened would stay open after the Auto_Open macro ran, so I needed a second fie to open with a macro that included code to close the previous file.

    All that was needed was to add the line "Application.Quit" at the end of the code of the first macro to close down EXCEL after the macro was completed.

    Danny

+ 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