Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim ctrl As Control
For Each ctrl In UserForm1.Controls
If TypeName(ctrl) = "ComboBox" Then
With ctrl
.Clear
.AddItem "Oil"
.AddItem "Gas"
End With
End If
Next ctrl
Dim ctrl As Control
For Each ctrl In UserForm1.Controls
If TypeName(ctrl) = "TextBox" Then
With ctrl
.Enabled = False
.Locked = True
End With
End If
Next ctrl
Dim ctrl As Control
For Each ctrl In UserForm1.Controls
If TypeName(ctrl) = "TextBox" And ctrl.Tag = "2" Then
With ctrl
.Enabled = False
.Locked = True
End With
End If
Next ctrl