You've done a great job. I love it when people take initiative. You do have a number of small errors that are tripping you up. Here is a revision that fixes them:
Weather Forecast Spreadsheet Draft V7.xlsm
It's not freezing. It's just got a really, really big job to do. This is causing a problem:
For Each C In Worksheets("Site List").Range("B:B") 'edited range
You are looping through every cell in column B. That is over a million cells. I updated the code to just loop through the cells that are being used.
This causes a compile error, the correct collection is Worksheets. I updated the code.
''''''Edited''''''
With Me
.TextBoxEditSiteName.Value = Format(Worksheet("Site List").Cells(.ComboBoxEditSiteName.ListIndex, 2), "0%")
.TextBoxEditLong.Value = Format(Worksheet("Site List").Cells(.ComboBoxEditSiteName.ListIndex, 4), "0%")
.TextBoxEditLat.Value = Format(Worksheet("Site List").Cells(.ComboBoxEditSiteName.ListIndex, 3), "0%")
End With
''''''''''''''''''
In CommandButtonEditUpdate_Click, the variable emptyRow was not declared or set. I fixed that.
Your code to add a row to Site List need to refer to Cells, not cell. I fixed it.
Worksheets("Site List").cell(emptyRow, 2) = cpUserForm.TextBoxAddSiteName.Value
Worksheets("Site List").cell(emptyRow, 3) = cpUserForm.TextBoxAddLat.Value
Worksheets("Site List").cell(emptyRow, 4) = cpUserForm.TextBoxAddLong.Value
Bookmarks