+ Reply to Thread
Results 1 to 3 of 3

Import Data from another open workbook (separate instance of Excel) with partial filename

  1. #1
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Import Data from another open workbook (separate instance of Excel) with partial filename

    Hello all...
    I have an importing problem and hoping one of you can help.

    I currently have a macro that initiates a function to export data from another application. That "export" launches a new instance of Excel, and names the file "grid1_xxxyyyzzz.xls" where xxxyyyzzz is not predicable in value or length. The file name does consistenly start with "Grid1_" and it is always an xls.

    I need to grab the contents of the first worksheet in that new workbook, which is consistently named "Worksheet"

    Due to the security of the other application, this new workbook is not saved in a download or temp repository that I can get to, which means, I believe, I have to get the data once the new workbook opens.

    The challenge here, for me, is that I can't find the filename because it's in that second instance, so I can't get to the data.

    Any help is appreciated!!!

    Thanks
    JP

  2. #2
    Forum Contributor sauerj's Avatar
    Join Date
    11-11-2009
    Location
    Lafayette, IN
    MS-Off Ver
    Excel 2019
    Posts
    163

    Re: Import Data from another open workbook (separate instance of Excel) with partial filen

    JP, Is the following any help? Holler back if you need more help.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Re: Import Data from another open workbook (separate instance of Excel) with partial filen

    Sauerj - thank you so much - this is working beautifully! Not sure why I couldn't get it to find the instance, but your code is doing exactly what I need.
    Thank you!

+ 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. Open word file with partial filename from excel
    By Eatmybrain in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-29-2016, 02:12 PM
  2. Open file with partial filename
    By biznez in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2016, 06:48 PM
  3. [SOLVED] Open .docx from Excel form using partial filename
    By pnmng49 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-02-2014, 01:30 PM
  4. Open workbook in new instance of excel
    By Dave1954 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2013, 09:54 PM
  5. How To Activate Workbook In Separate Instance Of Excel
    By Launchnet in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 05-10-2009, 07:22 PM
  6. Open new workbook with same instance of excel
    By jasonanthony in forum Excel General
    Replies: 3
    Last Post: 01-23-2009, 02:51 PM
  7. [SOLVED] Macro to Open the Menu Data,Refresh Data,filename,import
    By Bob in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2006, 12:55 PM

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