Quote:
|
Originally Posted by inho78
I am new to VB is there anywayt you could help me out on the code for this? It saves as either a csv or .xls.
|
Here is an example. There are 2 files. EnterStudentData.xls and Name.xls in the attached zip.
EnterStudentData.xls is the code file. There are named ranges on sheet1 for the combo list values and the name of your data workbook, where you want to save your data.
Name.xls is the data workbook. You should put a button on this workbook or toolbar button to activate the Macro 'EnterStudentData.xls!RunUserForm'
Typically you would Hide the code file 'Windows>Hide' then save the file hidden when prompted closing Excel App. This would allow the Userform to display without showing the underlying workbook and will hide your configuration settings.
You could enhance this by giving better data validation and providing a function to close the code file on closing the data and opening it with the data file. You will need to save your data file manually, this could also be incorporated into the data entry process in the code file.