+ Reply to Thread
Results 1 to 9 of 9

Entering Data in Table using a Form

  1. #1
    Registered User
    Join Date
    07-04-2025
    Location
    Scotland
    MS-Off Ver
    Office365
    Posts
    2

    Entering Data in Table using a Form

    Hello Guys

    I'm looking for some help in inputting data into a table using a form.

    I have created a form and written some code to input data into a form, however the data is being inserted into the correct columns but not the next empty row, instead its being entered
    at the bottom of the table.

    Initially, this was working correctly, but something has gone wrong somewhere. I'm completely new to VBA code.

    Thanks guys

    Martin
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    03-05-2025
    Location
    Deutschland
    MS-Off Ver
    MS Office Home & Business 2024
    Posts
    487

    Re: Entering Data in Table using a Form

    Hi,

    like this:

    Please Login or Register  to view this content.
    BR, Alexandra
    Best regards, Alexandra

    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved"

  3. #3
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,479

    Re: Entering Data in Table using a Form

    Here is a sample file to study and work off from :

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,072

    Re: Entering Data in Table using a Form

    No need for all those blank rows in Table...Remove them...
    Please Login or Register  to view this content.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  5. #5
    Registered User
    Join Date
    07-04-2025
    Location
    Scotland
    MS-Off Ver
    Office365
    Posts
    2

    Re: Entering Data in Table using a Form

    Good afternoon everyone

    Than you kindly for all your help with my excel project.
    My spreadsheet is beginning to grow arms and legs and as I learn more I find out ways to enhance my spreadsheet into a nice little database.

    Can I ask for some help with adding a combo box under the Nav status.
    I’d like this to contain 4 items as follows Underway, At Anchor, Local Pilot, With Tugs
    I’ve used the add item code, but I’m not sure its correct.
    As I add a new row in my table I’d like to add a “Yes” into one of the columns in the OpsRecord sheet.
    For example if I select Underway in the combo box and click add new record button, I should have a Yes in the underway column on that row and the other columns to the right should remain empty.
    Can someone help me?
    Thank you

    Martin
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    03-05-2025
    Location
    Deutschland
    MS-Off Ver
    MS Office Home & Business 2024
    Posts
    487

    Re: Entering Data in Table using a Form

    Hi,

    like this:

    Please Login or Register  to view this content.
    BR, Alexandra
    Last edited by cysu11; 07-08-2025 at 09:35 AM.

  7. #7
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,072

    Re: Entering Data in Table using a Form

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by Sintek; 07-08-2025 at 09:54 AM.

  8. #8
    Valued Forum Contributor
    Join Date
    03-05-2025
    Location
    Deutschland
    MS-Off Ver
    MS Office Home & Business 2024
    Posts
    487

    Re: Entering Data in Table using a Form

    ... but in a Sheet in this case i would prefer to do it by dropdown and data validation...

  9. #9
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,072

    Re: Entering Data in Table using a Form

    i would prefer to do it by dropdown and data validation
    I agree...
    Attached Files Attached Files

+ 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. VBA Errors After Entering Data via Form
    By Claude_Canberra in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-10-2021, 08:39 AM
  2. How to create user form under VBA for entering data
    By chintamani.avinash in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-24-2020, 02:26 PM
  3. [SOLVED] Entering results by Data form - is it possible?
    By neil40 in forum Excel General
    Replies: 11
    Last Post: 09-15-2012, 07:23 AM
  4. Entering Data Into Form
    By ajocius in forum Excel General
    Replies: 2
    Last Post: 01-18-2010, 05:59 AM
  5. Form for entering data
    By JOGIER in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-19-2009, 06:40 PM
  6. [SOLVED] entering data on form
    By MJWest in forum Excel General
    Replies: 2
    Last Post: 12-15-2005, 10:10 PM
  7. Replies: 2
    Last Post: 03-29-2005, 05:06 AM

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