I been searching the forums and I am sure this is quite easy to do but a little stumped. I have a userform where users only put in certain criteria. I have been asked to create a button where the user can unload the userform, and be able to print the worksheet, but the worksheet is protected. Anyone have any suggestions on how to do this?
Code:
Private Sub btnSEE_Click()
Unload UserForm1
ActiveSheet.Protect Password = "future"
End Sub