Dim ctl as Control
[tt]For Each ctl In formHTML.fTable
If TypeOf ctl Is ComboBox Then
With ctl
.AddItem "%"
.AddItem "px"
.AddItem "pt"
.AddItem "mm"
.AddItem "cm"
.AddItem "in"
.ListIndex = 0
End With
End If
Next ctl[/tt]
Why won't that work? I get an error on the first line (For Each ...) saying:
"Object doesn't support this property or method"
[tt]For Each ctl In formHTML.fTable
If TypeOf ctl Is ComboBox Then
With ctl
.AddItem "%"
.AddItem "px"
.AddItem "pt"
.AddItem "mm"
.AddItem "cm"
.AddItem "in"
.ListIndex = 0
End With
End If
Next ctl[/tt]
Why won't that work? I get an error on the first line (For Each ...) saying:
"Object doesn't support this property or method"