Hi,
Wondering if anybody can perhaps help me with an issue I have:
I have a userform which is used by users to enter data into a spreadsheet. This userform contains various textboxes and combo boxes, it also contains 2 command buttons (linked to a calendar control) to populate 2 textboxes with date values. Finally, the userform contains a command button to populate various cells on the spreadsheet, using the data entered into the fields mentioned above.
Once the values have been entered into the spreadsheet and the userform closed, I use the worksheet selectionchange event to do various calculations on the spreadsheet.
The problem I have is:
When fields on the userform are not populated with any values and entered into the spreadsheet, when the selection change event fires I get the error 'runtime error 13, type mismatch'
However, when the fields on the userform are populated and entered into the spreadsheet the selectionchange event code works perfectly.
I have an idea that the issue is with the date fields, not being happy with the null value assigned to it when the userform field is empty.
I would really appreciate some help/info/guidance..
Thanks
Ben
Bookmarks