Code:
Private Sub NetworkComboBox_Change()
Dim FoundCell As Range
Dim ws As Worksheet
Dim i As Integer
Dim rng As String
' Dim FoundMax As Integer - Now set as global variable
Set ws = ActiveSheet
GroupComboBox.Clear ' Clear current Group ComboBox
Set FoundCell = ws.Range("A:A").Find(What:=NetworkComboBox.Value) ' Find the cell for the selected network
rng = "B" & FoundCell.Row ' Build the string for the range of the max value
FoundMax = Range(rng).Value ' Assign the maximum group number
For i = 1 To FoundMax
GroupComboBox.AddItem i
Next i
End Sub
The debugger is yellow on the rng variable. well that is clearly set. This code has been working for months now this morning it is having all kinds of issues. The save as function seems to also be having strange issues. Again that code has been working for months and this morning all freaking out.
any clue? Thank you in advance.