+ Reply to Thread
Results 1 to 2 of 2

Help importing data from a closed workbook

  1. #1
    Elvis The King
    Guest

    Help importing data from a closed workbook

    Hello,

    For the past several years we've been using a worksheet to do our customer
    quotes. I thought I'd be really slick (I'm now finding out that I'm not near
    as slick as I thought I was) if I could copy the customer information from a
    saved workbook into the current workbook.

    I would like to have a command button that would get an open file dialog box
    or maybe run a macro where the user can select which quote to import the
    customer data from. All of the quotes have a different name and they reside
    in different directories. The customer data however is always in the same
    cells. For example: Customer Name is always in B5, Customer Phone Number is
    always in C8 etc.

    I am quite the novice at VBA and have had number of failed attempts. I would
    truly appreciate anybody that can offer an example of how this can be done.

    Thanks in advance,

    Todd




  2. #2
    PY & Associates
    Guest

    RE: Help importing data from a closed workbook

    Use getopenfilename method to display files to pick
    open the picked file
    import data
    close the data file
    if necessary, loop again for another file


    "Elvis The King" wrote:

    > Hello,
    >
    > For the past several years we've been using a worksheet to do our customer
    > quotes. I thought I'd be really slick (I'm now finding out that I'm not near
    > as slick as I thought I was) if I could copy the customer information from a
    > saved workbook into the current workbook.
    >
    > I would like to have a command button that would get an open file dialog box
    > or maybe run a macro where the user can select which quote to import the
    > customer data from. All of the quotes have a different name and they reside
    > in different directories. The customer data however is always in the same
    > cells. For example: Customer Name is always in B5, Customer Phone Number is
    > always in C8 etc.
    >
    > I am quite the novice at VBA and have had number of failed attempts. I would
    > truly appreciate anybody that can offer an example of how this can be done.
    >
    > Thanks in advance,
    >
    > Todd
    >
    >
    >
    >


+ 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