+ Reply to Thread
Results 1 to 8 of 8

Opening a file within Excel to populate another excel file

Hybrid View

  1. #1
    Registered User
    Join Date
    04-08-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    4

    Opening a file within Excel to populate another excel file

    Good Afternoon,

    I am looking for a bit of assistance.

    We have a parts order form that we use to keep a record of parts ordered on a job.

    We also have a delivery note, which said parts are then typed out again.

    All the parts order excel files are saved within a separate job file for each job, which is ever increasing daily.

    What I have though about it having a macro/vba etc within a delivery note template, which I can then open a file within this and it auto populate the fields with part description, quantity etc etc.

    Is this possible? If so can you please point me in the right direction.

    Thanks!

    Daniel

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Opening a file within Excel to populate another excel file

    Maybe:

    Sub dplatten01()
    Dim wb As Workbook
    Set wb = Workbooks.Open(Filename:="D:\YOUR\PATH\GOES\HERE\WORKBOOK TO OPEN.xls")
    End Sub

  3. #3
    Registered User
    Join Date
    04-08-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    4

    Re: Opening a file within Excel to populate another excel file

    Thanks for the swift response...

    However, I need to be able to choose the file name upon opening, or from the delivery note work book.

    As it would mean going in and changing all the code when I do every note and this is beyond all the other people capabilities.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Opening a file within Excel to populate another excel file

    Maybe:

    This?

    http://analysistabs.com/vba/open-fil...s-example-code

    Or this?

    Sub dplatten01()
    Dim x As String
    Dim wb As Workbook
    x = InputBox("Please Enter The File Name")
    Set wb = Workbooks.Open(Filename:="D:\YOUR\PATH\GOES\HERE\" & x & ".xlsx")
    End Sub

  5. #5
    Registered User
    Join Date
    04-08-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    4

    Re: Opening a file within Excel to populate another excel file

    Thanks,

    I have found similar code which now when I open my spreadsheet, it opens the browse box and I can choose the file I want to open. How do I now use this once open to populate my cells?

    Any pointers greatly appreciatied!

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Opening a file within Excel to populate another excel file

    Care to share the code that you are using? Don't forget too use code tags.

    http://www.excelforum.com/forum-rule...rum-rules.html

  7. #7
    Registered User
    Join Date
    04-08-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    4

    Re: Opening a file within Excel to populate another excel file

    At the moment, im at home, and the code is at work

    Im just trying to find some info while relaxing ready for work tomorrow

    I will update upon return to work

  8. #8
    Registered User
    Join Date
    04-07-2015
    Location
    Hoedspruit, South Africa
    MS-Off Ver
    2013
    Posts
    3

    Re: Opening a file within Excel to populate another excel file

    Hi Im am looking for a similar code. I have a Sheet Input form which I have created, it adds medical cases to a data base. What I need to be able to do is from the Sheet input form is search a specific case number to pull that record up into the Sheet Input form so that I can edit it.

    Any advice will be helpful. Thanks

+ 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. vba code for opening excel file and insert a new column in exisiting excel file
    By saratu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-21-2014, 02:55 PM
  2. Replies: 3
    Last Post: 01-14-2014, 10:57 AM
  3. Excel file link on mac opening containing folder not actual excel file
    By eldesso1 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 12-05-2013, 03:13 PM
  4. Replies: 0
    Last Post: 09-06-2013, 05:31 AM
  5. [SOLVED] opening an excel file opens a duplicate file of the same file
    By skm in forum Excel General
    Replies: 1
    Last Post: 12-07-2005, 01: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