ExcelLearner_
New Member
- Joined
- May 23, 2018
- Messages
- 7
Hi All,
I have created a combo box and would like to execute VBA according to selection from combo box.
I have used the same VBA code previously without any error. But since I upgrade to excel 2016 I got error message as shown below. Not sure if it's due to 64 bit system? Can anyone here shed some light, please?
Sub login()
With ActiveSheet
If .Range("celllink") = 1 Then
>> Run time error 1004. Application defined or object defined error
Call VBA_1
ElseIf .Range("celllink") = 2 Then
Call VBA_2
End If
End With
End Sub
I have created a combo box and would like to execute VBA according to selection from combo box.
I have used the same VBA code previously without any error. But since I upgrade to excel 2016 I got error message as shown below. Not sure if it's due to 64 bit system? Can anyone here shed some light, please?
Sub login()
With ActiveSheet
If .Range("celllink") = 1 Then
>> Run time error 1004. Application defined or object defined error
Call VBA_1
ElseIf .Range("celllink") = 2 Then
Call VBA_2
End If
End With
End Sub