+ Reply to Thread
Results 1 to 5 of 5

VBA Script to combine 2 separate spreadsheets into one

  1. #1
    Registered User
    Join Date
    09-19-2010
    Location
    Houston, Tx
    MS-Off Ver
    Excel 2003
    Posts
    16

    VBA Script to combine 2 separate spreadsheets into one

    Need some quick help if i can get it on a simple VBA script.
    Was handed this project yesterday and due in by tonight.

    have 2 spreadsheets:

    Spreadsheet 1

    Name | Zip Code
    Joe | 77123
    Tom | 77234
    Paul | 77345


    Spreadsheet 2

    Zip Code | Location
    77123 | Texas
    77234 | Utah
    77345 | Kansas

    I need to create a FORM for the user to select 2 or more names from Spreadsheet 1;
    When the name is selected, the zip code will be looked up in Spreadsheet 2 and the information pasted into a new spreadsheet, see below

    Spreadsheet 3

    Name | Zip Code | Location
    Joe | 77123 | Texas
    Paul | 77345 | Kansas
    and so on.

    this is very simple using vlookups in the Spreadsheets, but the request is for a USER FORM.
    I can create the form but cannot figure out the VBA script to accomplish this task.

    If anyone has a similar script I can look at, or is there a very simplified script i can see to get started on this one.

    Thank everyone in advance for your help.
    I really need some help on this one.....

    Frank

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: VBA Script to combine 2 separate spreadsheets into one

    Create the form with some data in the worksheets and upload it.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Registered User
    Join Date
    09-19-2010
    Location
    Houston, Tx
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: VBA Script to combine 2 separate spreadsheets into one

    I have attached a file containing 3 sheets. The third sheet is the results I need.
    I have also created the form.

    Thank you for your help.

    Frank
    Attached Files Attached Files

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: VBA Script to combine 2 separate spreadsheets into one

    This should give you a good starting point.

    Coffee Shop Macro.xlsm

  5. #5
    Registered User
    Join Date
    09-19-2010
    Location
    Houston, Tx
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: VBA Script to combine 2 separate spreadsheets into one

    Thank you Mike, this will definitely give me a good start.

    Thank you very much.

    Frank

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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