+ Reply to Thread
Results 1 to 5 of 5

Populating Table with Data

  1. #1
    Registered User
    Join Date
    11-19-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    6

    Populating Table with Data

    Hi all,

    I found this site very helpful thus far and was hoping someone could help me out with a table I'm trying to fill using VBA.

    TableFill.xlsm

    Basically columns K and L will define where the animal in row I will be placed in the table. Everything seems to be working for the animal and location in row 3.

    Please Login or Register  to view this content.
    Unfortunately I'm not up to the point where I can cycle through the other animals and associated locations.

    What would I need to add to my existing code to be able to to this? I realize that what I have may not be great, anything that might be better please let me know.

    There might be a possibility that there are multiple animals in each location, this would need to be incorporated into the code as well.

    Again thanks for the help!
    Attached Files Attached Files
    Last edited by TheDudeness; 04-24-2015 at 02:59 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Populating Table with Data

    Your code needs a lot of work.

    There are a few issues here.

    I will create your macro and then explain.


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mehmetcik; 04-24-2015 at 03:56 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    11-19-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Populating Table with Data

    Yeah...I am just starting the learning process; I've got a lot of learning to do. I've starting reading a ton of books and trying to get up to speed.

    This site and the people on here have also been amazingly helpful! Thanks again, I really appreciate your reply.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Populating Table with Data

    This is untested but achieves the requirement using two read operations and one write operation.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-19-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Populating Table with Data

    You are the best! Thanks you so much!

+ 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. Replies: 9
    Last Post: 12-03-2014, 06:17 PM
  2. populating cells on a table using data from another table
    By richie2711 in forum Excel General
    Replies: 1
    Last Post: 07-21-2013, 07:13 PM
  3. Populating data from one table to another?
    By cd1 in forum Excel General
    Replies: 3
    Last Post: 10-21-2010, 04:40 PM
  4. Populating 2nd table with data
    By maxthebear in forum Access Tables & Databases
    Replies: 2
    Last Post: 05-01-2010, 07:53 PM
  5. Populating one table with data from another in different tab
    By albpoli in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-19-2007, 05:33 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