I have multiple ComboBoxes (some of the code is below) and I was wondering if there is a way to shorten it up?
Cross-posted here: http://www.mrexcel.com/forum/excel-q...rten-code.html
With Sheet1.ComboBox2111
.AddItem "00:00"
For i = 1 To 1439
.AddItem Format(i / 1440, "hh:mm")
Next i
End With
With Sheet1.ComboBox2112
.AddItem "00:00"
For i = 1 To 1439
.AddItem Format(i / 1440, "hh:mm")
Next i
End With
With Sheet1.ComboBox2113
.AddItem "00:00"
For i = 1 To 1439
.AddItem Format(i / 1440, "hh:mm")
Next i
End With
With Sheet1.ComboBox2114
.AddItem "00:00"
For i = 1 To 1439
.AddItem Format(i / 1440, "hh:mm")
Next i
End With
With Sheet1.ComboBox2115
.AddItem "00:00"
For i = 1 To 1439
.AddItem Format(i / 1440, "hh:mm")
Next i
End With
Bookmarks