Hi,
I'm running the function bellow and I'm getting an err on a problem with the methood or with the object.
I have debuged the function and saw that the Object is being created (or at least it pass the object creation stage).
The methood step issues an err.
This is the function code:
Private Function RegRead(ByVal regpath)
Dim objShl
Set objShl = CreateObject("wscript.shell")
RegRead = objShl.RegRead(regpath)
Set objShl = Nothing
End Function
I'm running the function bellow and I'm getting an err on a problem with the methood or with the object.
I have debuged the function and saw that the Object is being created (or at least it pass the object creation stage).
The methood step issues an err.
This is the function code:
Private Function RegRead(ByVal regpath)
Dim objShl
Set objShl = CreateObject("wscript.shell")
RegRead = objShl.RegRead(regpath)
Set objShl = Nothing
End Function