+ Reply to Thread
Results 1 to 2 of 2

Trying to add additional data into a specific row of a table depending on row selected VBA

  1. #1
    Registered User
    Join Date
    07-16-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2016 Professional Plus
    Posts
    35

    Trying to add additional data into a specific row of a table depending on row selected VBA

    A poor description in my title so i'll try and explain, I've attached a sample workbook showing what I need help with

    I use a macro in Sheet1 to input data into a table in Sheet2

    I'm then recalling that data in Sheet3 by typing in the ref number and using vlookup to bring the other data back

    I then wish to add data from an additional three cells into the row of the table that matches the ref number being used to recall the data.

    I then wish to repeat this on a 4th sheet, again recalling the data in the table on Sheet2 wish should now also include the data added from Sheet3. and then add additional data to the row selected

    Not a good explanation I know !!, but I've attached the spreadsheet and typed some notes on Sheet3 and Sheet4 explained exactly what I want to happen

    Doing all of this with Macros

    Cheers

    Chris

    Sample 1.0.xlsm
    Last edited by Carling73; 07-05-2013 at 05:17 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Trying to add additional data into a specific row of a table depending on row selected

    Hello Chris,

    I have added 2 macros to your Module1 code. The function returns the row of the reference number on Sheet2. The Sub procedure determines which "button" you clicked on which worksheet and transfers the data from that sheet to the correct columns on Sheet2. Here is the code. The attached workbook contains the changes.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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