Hi,
I have a spreadsheet with two UserForms.
One UserForm adds records.
One UserForm allows users to views/edit records - this is a dropdown based on each row having a Unique Reference number entered at the Add Record stage.
The code for the 'Add Record' UserForm is below, it all works fine and achieves its purpose.
The only way you can add to the spreadsheet is by hitting the Add Record button.
However, I want to create a function that automatically assigns a Unique number to the spreadsheet once the Add Record button is pressed even if, for example, someone goes in and manually deletes a line. The 'Unique Reference Number' is at the moment manually entered and falls under 'NameTextBox' in the code below.
Any help is greatly appreciated.
David
![]()
Please Login or Register to view this content.
Bookmarks