I have an Excel file in which a VBA macro loads data into a Userform.
It will sometimes crash and close Excel if I run it without the editor open.
How to fix my file so I don't need to first open the editor?
Sample code from the macro:
Public Sub LoadButton_Click()
'Policy Information
ZoneLatitudeTextBox.Text = Sheets("Saved Policy Values").Cells(2, 2)
ZoneLongitudeTextBox.Text = Sheets("Saved Policy Values").Cells(3, 2)
TownClassComboBox.Text = Sheets("Saved Policy Values").Cells(4, 2)