Hi All,
I have written the below function
[VBA]Function printval(strVal As Variant) As Variant
Call prnt(strVal)
End Function
Sub prnt(strVal As Variant)
On Error GoTo exp
Sheets("Sheet3").Select
Sheet3.Activate
Sheet3.Visible = True
Sheet3.Cells(1, 4) = strVal
catch:
Exit Sub
exp:
MsgBox Err.Description 'getting error number 1004
Resume catch
End Sub[/VBA]
While executing I am getting error number 1004. Can any one help me to resolve this issue?