Hi,
hope you can help - just started using VBA recently - trying to build a userform that will send information to a spreadsheet that will record all entries made - all of the selections from the form will be present on individual rows in the spreadsheet
there are many fields on the userform (text entries, drop down boxes, radio buttons) and if one field has not been filled in by the user then a message box appears asking the user to fill in the relevant field
what im struggling with is how to stop the form sending any data to the spreadsheet when not all the fields have been completed.
currently:
- no data is sent to the spreadsheet if the first field on the userform (choice is 1 of 4 radio buttons) has not been completed (even when all of the other fields are complete)
- if the first field is complete it will always get sent to the spreadsheet...along with any other fields that have been completed
- all of the other fields on the userform are only ever sent when the first field is complete
my code is as follows: (included the first two fields from the form...field one is a choice of four options....field two is a drop down box selection....the other fields on the form are in the same sort of format eg ActiveCell.Offset(0, 2) = xxx)
Ive tried a few changes but am stuck - any help would be appreciated as well as any good VBA tutorial sites that anyone can recommendPlease Login or Register to view this content.
Many thanks!
Bookmarks