P
Patrick Simonds
The code below does what I need it to do (displays the current date in a
textbox when userform1 opens) but when I close the Userform I get the
following error:
Run-time error '91':
object variable or with block variable not set
Private Sub UserForm_Initialize()
With UserForm1
.DateTextBox.Text = Format(Date, "dddd dd-mmm-yy")
.Show
End With
End Sub
textbox when userform1 opens) but when I close the Userform I get the
following error:
Run-time error '91':
object variable or with block variable not set
Private Sub UserForm_Initialize()
With UserForm1
.DateTextBox.Text = Format(Date, "dddd dd-mmm-yy")
.Show
End With
End Sub