Hi, this is my first try in vba coding and i am facing error with the following piece of code:
Dim x As Variant
Dim y As Variant
x = Application.Match(Me.cmbEmp_cd1.Value, Sheet3.Range("A2:A500"), False)
y = Application.Match(Me.cmbMatch.Value, Sheet3.Range("B1:XFD1"), False)
While 'y' is getting the right number ,'x' is showing "Error 2042"!!!
Need help urgently!!!
TIA
Dim x As Variant
Dim y As Variant
x = Application.Match(Me.cmbEmp_cd1.Value, Sheet3.Range("A2:A500"), False)
y = Application.Match(Me.cmbMatch.Value, Sheet3.Range("B1:XFD1"), False)
While 'y' is getting the right number ,'x' is showing "Error 2042"!!!
Need help urgently!!!
TIA