+ Reply to Thread
Results 1 to 6 of 6

Transfer data from certain columns in the last row of data to separate worksheet

  1. #1
    Registered User
    Join Date
    02-28-2012
    Location
    Germany
    MS-Off Ver
    Excel 2013
    Posts
    9

    Smile Transfer data from certain columns in the last row of data to separate worksheet

    Hi All,

    The attached workbook (projects.xlsm) contains two worksheets: tblProjects and tblPO.
    Projects.Anon.zip

    I’m trying to transfer data from certain columns in the last row of data in tblProjects to specific cells in tblPO, where the data entered in tblPO simply overwrites earlier entries. I’ve added a simple script to tblProjects to show you what I mean, but this is merely an example and only works on the first row of data.

    Have also attached a second workbook, which projects.xlsm references.

    Thanks in advance for taking the time to read this and for helping me out :)

    Karen

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Transfer data from certain columns in the last row of data to separate worksheet

    Sure, that's doable. The simple script you created doesn't seem to put values into columns on tblPO, it puts them into that form you have mocked up. As such, that would only work one row, but I'm sure we just know exactly what you're doing here yet.

    1) What would trigger the move?
    2) Are we simply moving some random row from tblProjects into that form?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-28-2012
    Location
    Germany
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Transfer data from certain columns in the last row of data to separate worksheet

    Thanks looking at this Jerry.

    Sorry for not being clearer in my original post.

    The big red button at the top of the tblProjects worksheet is the trigger.

    tblProjects is an ongoing record and could contain any number of rows. Would like to copy data from the last row under the headings

    "Project Number" in tblProjects to "JOB NO.:" (B5) in tblPO
    "Language from > to" in tblProjects to "LANGUAGE PAIR:" (B7) in tblPO
    "Service" in tblProjects to "JOB TYPE: " (B4) in tblPO
    "Qty. New" in tblProjects to "New:" (B11) in tblPO
    "Qty. Rep." in tblProjects to "Repetition (perfect/100%, etc.):" (B12) in tblPO
    "Qty. Fzy 95-99%" in tblProjects to "Fuzzy (95% - 99%):" (B13) in tblPO
    "Qty. Fzy 85-94%" in tblProjects to "Fuzzy (85% - 94%):" (B14) in tblPO
    "Qty. Fzy 75-84%" in tblProjects to "Fuzzy (75% - 84%):" (B15) in tblPO
    "Qty. Fzy 50-74%" in tblProjects to "Fuzzy (50% - 74%):" (B16) in tblPO
    "Deadline" in tblProjects to "DEADLINE:" (B6) in tblPO

    To summarise, the data in the above mentioned columns of the last row of tblProjects should be copied and overwrite the data in the above mentioned cells of tblPO.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Transfer data from certain columns in the last row of data to separate worksheet

    If you simply want the form on tblPO to always show the latest entry, you don't need VBA for that.

    B5: =INDEX(tblProjects!B:B, COUNTA(tblProjects!A:A)+1)
    B6: =INDEX(tblProjects!L:L, COUNTA(tblProjects!A:A)+1)

    ...etc.

  5. #5
    Registered User
    Join Date
    02-28-2012
    Location
    Germany
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Transfer data from certain columns in the last row of data to separate worksheet

    Thanks very much
    Last edited by infoanalyzer; 10-06-2015 at 07:15 AM.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Transfer data from certain columns in the last row of data to separate worksheet

    As it appears you've reached a conclusion, I've marked this thread SOLVED for you.
    FYI, this is done through the Thread Tools located above the first post in this thread. 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. Trying to transfer data from one sheet to a separate workbook
    By estep32 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-16-2014, 01:51 AM
  2. Replies: 1
    Last Post: 08-02-2013, 09:58 PM
  3. Data transfer between separate worksheets:
    By Roktgr in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-31-2013, 04:57 PM
  4. Replies: 11
    Last Post: 12-04-2012, 02:56 AM
  5. Replies: 3
    Last Post: 07-22-2012, 08:44 PM
  6. Auto transfer data from 4 wkbks to a separate wkbk.
    By dustyv in forum Excel General
    Replies: 0
    Last Post: 09-02-2010, 02:38 PM
  7. Automatically transfer data to separate worksheet
    By ssides in forum Excel General
    Replies: 3
    Last Post: 02-05-2010, 01:31 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