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.
Private Sub ComboBox1_Change()
'when the ComboBox is changed, _
place the selected value in the corresponding cell _
make the ComboBox invisible and _
clear the value in the ComboBox
With ComboBox1
.TopLeftCell.Value = .Value
.Visible = False
.Value = ""
End With
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'whenever column 1 (A) is selected, _
make the ComboBox visible _
assign the ComboBox location and size to the active cell location and size _
OTHERWISE make the ComboBox invisible
If Target.Column = 1 Then
With ComboBox1
.Visible = True
.Top = Target.Top
.Left = Target.Left
.Width = Target.Width
.Height = Target.Height
End With
Else
ComboBox1.Visible = False
End If
End Sub