jazminecat
Programmer
I have a combobox on a page. I want the user to select a value from this cell, which will then be used to populate the data on the page when the user presses F9. i'm used ot doing this in access, not excel so i'm a bit lost.
How do I
a) capture the value the user selects
b) pass it to cell H9
and best case
c) then 'press' F9 to refresh the data on the page (it's a proprietary addin that uses excel, and f9 refreshes the data from cache)?
Here's what i have so far.
Private Sub ComboxBox1_Select()
ComboBox1.Select
If ComboBox1.Value = "1" Then
Range("H4").Select
ActiveCell.Value = "1"
ElseIf ComboBox1.Value = "2" Then
Range("H4").Select
ActiveCell.Value = "2"
End If
End Sub
How do I
a) capture the value the user selects
b) pass it to cell H9
and best case
c) then 'press' F9 to refresh the data on the page (it's a proprietary addin that uses excel, and f9 refreshes the data from cache)?
Here's what i have so far.
Private Sub ComboxBox1_Select()
ComboBox1.Select
If ComboBox1.Value = "1" Then
Range("H4").Select
ActiveCell.Value = "1"
ElseIf ComboBox1.Value = "2" Then
Range("H4").Select
ActiveCell.Value = "2"
End If
End Sub