+ Reply to Thread
Results 1 to 8 of 8

VBA to Auto Populate the “AutoPopulate” sheet as data is being entered in EnterData sheet

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    VBA to Auto Populate the “AutoPopulate” sheet as data is being entered in EnterData sheet

    Looking for VBA code to auto populates the “Auto Populate” worksheet as data is being entered in the “Enter Data” worksheet (main data entering sheet). VBA conditions:

    VBA Code Conditions:
    1. When I go back to make changes to the data entered in any ** the cell, the Auto Populate worksheet should capture the changes. For example, if I delete Product name Soya in row 3, column A and re-enter Milk, milk should be captured for the Product name
    2. If one mistakenly enter data in row 6, column A instead ** the next empty (row 4 column A), the VBA code should auto populate the data on the next empty cell in the Auto Populate worksheet (see sample data)
    3. If I delete all the data entered in the Enter Data worksheet, the Auto populate sheet should retain all auto populated data. When new data is entered, the auto populate should continue on the next empty row

    Note: The Auto populate worksheet is a database to hold data entered into the Entered Data worksheet.

    Thanks in advance.
    Attached Files Attached Files
    Last edited by bjnockle; 03-08-2014 at 03:24 PM.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: VBA to Auto Populate the “AutoPopulate” sheet as data is being entered in EnterData sh

    The only way I can see this working is if each row entered in your "Enter Data" sheet had a unique identifier that can be used to link it to the data copied to the other sheet, for example, a unique ID number or unique order number. Is this possible?
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: VBA to Auto Populate the “AutoPopulate” sheet as data is being entered in EnterData sh

    Mumpsi - Yes, this is possible. Column G in the "Enter Data" sheet is the unique identifier column where the order numbers are entered.

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: VBA to Auto Populate the “AutoPopulate” sheet as data is being entered in EnterData sh

    Copy and paste this macro into the worksheet code module. Do the following: right click the tab for your sheet "Enter Data" and click 'View Code'. Paste the macro into the empty code window that opens up. Close the code window to return to your sheet. The macro is triggered by a change in any cell in column G (Unique ID). This means that you have to enter the data in all the other columns first and enter the Unique ID last. If you go back and make a change in any row in "Enter Data", make the change first and then re-enter the Unique ID in column G.
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: VBA to Auto Populate the “AutoPopulate” sheet as data is being entered in EnterData sh

    Mumpsi: the code is working as coded; however, i am looking for a vba macro that will auto paste/auto populate the auto populate sheet as data is being entered in real time in A2:G2 . If i go back to make changes to a particular line entered, data changed should be reflected in the auto populate sheet accordingly.

    Thank you.

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: VBA to Auto Populate the “AutoPopulate” sheet as data is being entered in EnterData sh

    Copying the cells one at a time as they are entered is problematic. The code the way it is designed will do what you want including copying any changes you make. The only thing that has to be done is that the Unique ID has to be re-entered each time a change is made. There may be a way to do it in real time but unfortunately my VBA aren't up to the task.

  7. #7
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,000

    Re: VBA to Auto Populate the “AutoPopulate” sheet as data is being entered in EnterData sh

    Mumpsi: Thank you for the help - the code works and will adopt as suggested.

  8. #8
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: VBA to Auto Populate the “AutoPopulate” sheet as data is being entered in EnterData sh

    It was my pleasure.

+ 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. Want to auto populate an excel sheet from a master sheet of data
    By M>E> in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-07-2014, 03:34 PM
  2. [SOLVED] Need sheet to automatically populate next unique entry entered on a different sheet
    By NS4Excel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-23-2014, 05:15 PM
  3. [SOLVED] I need to auto populate cells in one sheet with data from another sheet
    By armyman5 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-21-2013, 04:25 PM
  4. Auto-populate a Sheet from Data on Another Sheet
    By thetaramichelle in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-07-2013, 03:51 PM
  5. Auto-populate specific data from one sheet to another
    By arskiracer in forum Excel General
    Replies: 0
    Last Post: 10-17-2012, 10:27 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