+ Reply to Thread
Results 1 to 2 of 2

VBA: Creat items and add to a database.

  1. #1
    Registered User
    Join Date
    07-25-2023
    Location
    Den Haag
    MS-Off Ver
    365
    Posts
    1

    VBA: Creat items and add to a database.

    Hello,

    I am trying to set up a macro that creates a new product into our product list and the adds these all to our main database which is where we store information on our technicians certification level on those products. So I have a list of technicians, products which also includes the default training level and request of 0 & 0, and then the overall database.

    I have another sheet where people can enter in the new product franchise, name and ID and this will add it to the Product List and this is working perfectly well.

    But now I need to create a new row in the main database for each technician on this new product, which currently is 99 rows.

    The only issue I am having at the moment is that when it is pulling the names into the database this goes well but I need it to pull the last line from the products sheet (which will be the newest one) but it always goes for the one just above it. Is there anything wrong with this code?

    Please Login or Register  to view this content.
    Last edited by AliGW; 07-25-2023 at 09:46 AM. Reason: Code tags added. Please read the forum rules.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,444

    Re: VBA: Creat items and add to a database.

    Welcome to the forum.

    Code must be encased in code tags - please read the forum rules. I have done it for you this once.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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: 4
    Last Post: 07-22-2014, 10:17 PM
  2. [SOLVED] how do i creat a database to track stock
    By okpoch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-22-2006, 09:50 AM
  3. [SOLVED] multiple items in database
    By Peter in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  4. multiple items in database
    By Peter in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. [SOLVED] multiple items in database
    By Peter in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  6. [SOLVED] multiple items in database
    By Peter in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-15-2005, 04:05 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