Consulting

Results 1 to 4 of 4

Thread: Solved: retrieve specified field data from other Excel file & append to current Excel file.

  1. #1
    VBAX Regular
    Joined
    May 2005
    Posts
    62
    Location

    Solved: retrieve specified field data from other Excel file & append to current Excel file.

    hello....

    got a big query and need someone here to give a hand. thanks in advanced...!

    1. got 2 Excel files, say file A and file B.
    2. file A is the logbook (spreadsheet format) to keep accumulate records. while file B is an Excel file (form sheet format) which being updated everyday.

    3. want to put a Macro inside file A (logbook) and after open file A & activate the macro, it will open file B and retrieve all specified fields data from file B and append to file A in pre-defined columns in file A.

    Would anyone got suggestions hows those coding would look like....??

    Thank you very much for any helping hands...

    BR/
    beginner

  2. #2
    VBAX Regular
    Joined
    May 2005
    Posts
    62
    Location
    hi.....

    i got some coding from the this site and can achieve what i want.

    but only still don't know how to do append action, ie. to check the current Workbook(logbook) the next blank record row, then can append the new data writing in...?? any suggestions to do the append action is appreciated. thanks a lot.

    i am using below code to write the data (only show one row where dWB is another Workbook)

    [VBA]ThisWorkbook.Sheets(1).Cells(5, 2).Value = dWB.Sheets(1).Cells(1, 1).Value
    [/VBA]

    BR/
    beginner

  3. #3
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    Killian talks about last used row in this thread:
    http://www.vbaexpress.com/forum/showthread.php?t=8184
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  4. #4
    VBAX Regular
    Joined
    May 2005
    Posts
    62
    Location
    hi Lucas, thanks for the info.

    Beginner

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •