Hello again,
I have a Userform with a clear button I am trying to code to clear all of the contents entered on the form (which has yet to be be submitted to the spreadsheet).
The clear button is circled in orange.
Form - clear.JPG
It all works with the exception of clearing the conditional photo (the photo changes according to the employee selected in the drop down combobox on the form).
Here is my code- can someone help me get the button to clear the photo too?..
Within the form code is:
The code changes the image of the employee depending on the employee selected on the drop down (I have a list of JPGs in the same folder with the same employee names).
End Sub
And within the module the function is:
The code above clears everything with the exception of the photo if an employee is selected in the form. Can someone provide me with the code to clear the photo alone- without causing errors - and where to place within the existing function?...
Maybe something like?...
Image2.Picture = Nothing
'WorkSchedule.Image2.Picture = LoadPicture("")
Bookmarks