Edit Records in Excel Worksheet Data Entry Form

How can you make it easy for people to enter and edit data in Excel, but keep them away from the data storage worksheet?

Last year, I posted a Worksheet Data Entry Form in Excel, where users could enter and view Excel data. It was based on a worksheet data entry form that Dave Peterson created.

I’ve created a new version, where users can enter, view and edit the Excel data.

Version 1: Add New Records

In Dave’s original worksheet data entry form, users could add records on the data entry worksheet, and click a button to go to the database sheet, and review or edit the order records.

original Excel data entry form
original Excel data entry form

Version 2: View Existing Records

In version 2, I added a few buttons to Dave’s workbook, to allow users to scroll through the existing records.

With the navigation buttons, you could go to the first, previous, next or last record, or type a record number, to go to a specific record.

Excel data entry form scroll
Excel data entry form scroll

Version 3: Update Existing Records

In the latest version of the Excel Worksheet Data Entry form, I’ve added an update feature.

As in the previous version, there are data validation drop down lists, to select Item and Location.

The Price calculation is based on a VLOOKUP formula, and the Total formula multiplies the quantity by the price.

After you select a record, you can change its data, then click the Update button to copy those changes to the database.

Excel data entry form Update Existing Records
Excel data entry form Update Existing Records

For example, in the record shown above, if you discovered that there was an error, you could change the quantity from 500 to 200. The Total formula would automatically recalculate, to show the new total of $200.00.

Then, click the Update button, and the revised quantity and total would appear in that record on the database sheet.

The Update Code

Before updating the database record, the Update code checks to see of all the data entry cells are filled in. If they aren’t, a warning message appears, and the macro stops running. This prevents you from accidentally overwriting an existing record with blank cells.

Excel data entry message

If all the data entry cells are filled in, the code:

  • writes the current date and time in the applicable row of the database
  • adds the User Name from the Excel application
  • copies the data to the database
  • clears the data entry cells

Then, with a cleared data entry sheet, you can go on to add, view and edit other records, or save and close the workbook.

Download the Sample File

The zipped sample workbook, in Excel 2003 format, can be downloaded from the Contextures website: Worksheet Data Entry Form
___________

31 thoughts on “Edit Records in Excel Worksheet Data Entry Form”

  1. Hi,
    I was wondering if Update Existing Records is possible to search via Name/Partname and not just via Log Number?

    thanks

    PS: really best data entry form on the web!

  2. Stargazer, RMoreno, MRNO and Cumar, thanks for your suggestions for enhancements to the data entry form.
    I’m working on the changes, and will post on the blog when the new version is ready.

  3. Hi,

    I have created the excel form with the code you have provided.
    If updating existing record is possible to search via product name .please let me know?

  4. its very nice thing – excel data entry form

    but how can we add a new coloumn means a new head for example i want to add REMARK below TOTAL as a extra record in a new cell then how the macro will work in this cas

  5. HI,

    Love this form and database. I have changed it around to use as a jobcard for work carried out, Instead of Qty i’ve used this box as Hours. However when I enter 3.5 it says I can’t use fractions ‘The value you have entered is not valid’. How can I change this in the code please. as we work on a 7 hour day so if some one only works 3.5 hours I can’t enter it at the moment.

    Keep up the Great work 😉

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.