VBA User Form Command Button - add entry to next row - Excel 2013

Anonymous
2017-01-22T09:33:33+00:00

Hello,

I have struggled through many youtube videos trying to find the code for a command button to add an entry from a user form to an excel spreadsheet, and another command button (Close form) to close the form. Most of the online tutorials are using Excel 2010, I have the latest 2013 version of Excel however, and some things appear to be different between the Excel versions...

I know very little VBA and would appreciate some help.

Please find my form attached:

I wold like the records added to go to the 2nd row in sheet below:

Also, does anyone know how to add a time stamp to each entry? I would like another column added so that the time of entry of each form is displayed. Is this possible?...

Appreciate it!

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Andreas Killer 144K Reputation points Volunteer Moderator
    2017-01-22T14:56:56+00:00

    I think it is easier to ammend my one to include some of the features.. Here is my form as it is now...

    Well, easier is the code that you understand. You are the developer, not me. I can only make suggestions. ;-)

    Have a look into this file:

    https://dl.dropboxusercontent.com/u/35239054/Samples/5bef207c-9d0f-417f-b56a-cfab0ea75198.xlsm

    Andreas.

    2 people found this answer helpful.
    0 comments No comments

14 additional answers

Sort by: Most helpful
  1. Anonymous
    2017-01-22T15:29:59+00:00

    Thank you so much Andreas! And yes, I should learn, and I will in time (VBA is however very difficult - I only know HTML and CSS).

    Thank you!

    0 comments No comments
  2. Doug Robbins - MVP - Office Apps and Services 322.1K Reputation points MVP Volunteer Moderator
    2017-01-23T00:19:57+00:00

    That's because you have not included the End With that was in my code.

    1 person found this answer helpful.
    0 comments No comments