+ Reply to Thread
Results 1 to 3 of 3

Help with code to have database userform add values to next empty row.

  1. #1
    Forum Contributor
    Join Date
    02-16-2008
    Location
    Mansfield, TX
    Posts
    324

    Help with code to have database userform add values to next empty row.

    Go easy on me, this is the very first userform and vba project I have written on my own. How do I write the code so that when the add button is clicked it adds the values in the form to the next empty row. Right now it just owerwrites the values in row 2.

    Please Login or Register  to view this content.
    Last edited by dcgrove; 06-03-2010 at 05:17 PM.

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: Help with code to have database userform add values to next empty row.

    Good evening dcgrove

    Have a look at the attached workbook.
    It shows a simple address book driven via a userform, and identifies the next available row for each line of data posted.

    HTH

    DominicB
    Attached Files Attached Files
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Contributor
    Join Date
    02-16-2008
    Location
    Mansfield, TX
    Posts
    324

    Re: Help with code to have database userform add values to next empty row.

    That was exactly what I needed. For future reference this is what my code looks like now.

    Please Login or Register  to view this content.
    thanks!

+ 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