The "me.textboxname.text" instead of .value didn't work
. As far as unprotecting the worksheet so as to enter data, I changed a couple lines of code in the opening of the user form and the close button on the form. I did find that by default the workbook can't be manipulated with the Userform window open, so nothing to change/protect there. I need for anybody to look at the table at any time, a coworker suggested eventually making it searchable, to which I said one headache at a time
.
Sub Rectangle1_Click()
Sheets("Thermals").Select
ActiveSheet.Unprotect Password:="thermals014"
Sheets("Main").Select
frmThermals.Show
End Sub
I added/modified/pasted this at the end of the Userform code
Private Sub cmdClose_Click()
Sheets("Thermals").Select
ActiveSheet.Protect Password:="thermals014", DrawingObjects:=True, Contents:=True, Scenarios:=True
Sheets("Main").Select
Unload Me
End Sub
Private Sub UserForm_QueryClose(Cancel As Integer, _
CloseMode As Integer)
If CloseMode = vbFormControlMenu Then
Cancel = True
MsgBox "Please use the button!"
End If
End Sub
Bookmarks