paulcraigdainty
Registered User.
- Local time
- Today, 22:05
- Joined
- Sep 25, 2004
- Messages
- 74
I've written the following routine however it's not working for some reason. Basically I want to set the value of AG3 to match the value of H7 on sheet 2 when number 1 is selected in the combo box.
Is there something wrong with my syntax?
Private Sub ComboBox1_Change()
If Me.ComboBox1.Value = "1" Then
Range["ag3"].Value = ("Sheet2")Range("h7")).Value
End If
End Sub
Is there something wrong with my syntax?
Private Sub ComboBox1_Change()
If Me.ComboBox1.Value = "1" Then
Range["ag3"].Value = ("Sheet2")Range("h7")).Value
End If
End Sub