+ Reply to Thread
Results 1 to 8 of 8

Code/Macro to populate table based on user input.

  1. #1
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Code/Macro to populate table based on user input.

    Hello Happy Campers!
    (first off, nice new look forums!)

    I have a workbook (attached)

    Sheet1 - Main Table
    Sheet2 - Data

    In sheet 2 i will add info into cells A1 & B1 (always 2 cells as A is the item, & B is the qty) and there will always be more than one line of data, but not a fixed amount.

    I would like either formula's or Code to do the following;
    From the info, populate 'Main Table' by looking at the item and then placing the respective qty in the column with matching date. (date, taken from date of entry on sheet or would i need to add a cell with the date i want to add/find?)

    The sheet attached has the info how i would like it to look.

    Many thanks in advance

    Galvinpaddy
    Attached Files Attached Files
    Last edited by galvinpaddy; 12-07-2011 at 01:40 PM. Reason: uploaded file

  2. #2
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Code/Macro to populate table based on user input.

    Apologies, i did not explain everything!
    I would also like the cells on Sheet2 to be cleared of info once the data has been transferred onto Sheet1, to allow me to save and close the sheet, re-open the next day and add more data.

  3. #3
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Code/Macro to populate table based on user input.

    Hello Happy Campers

    Bump

  4. #4
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Code/Macro to populate table based on user input.

    Hello Happy Campers,

    Bump

  5. #5
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Code/Macro to populate table based on user input.

    hi galvinpaddy, there is no file posted in any of your posts

  6. #6
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Code/Macro to populate table based on user input.

    Apologies, it would appear i missed that, was certain i had added it, thanks for the update

  7. #7
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Code/Macro to populate table based on user input.

    please check attachment, macro option, run code "test". I've added third column on Data sheet with date.

  8. #8
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: Code/Macro to populate table based on user input.

    Sorry fella, i cannot see a file that has been loaded, it also appears that the files i loaded yesterday are missing unless its something wrong my end??
    Would you be able to email me the file if i PM you my email address?
    Last edited by galvinpaddy; 12-08-2011 at 10:09 AM.

+ 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