Hi,
several years ago a freelancer wrote for me several vba macros to login on a site , retrieve daily data and process them, which worked without any problem.
recently I wished to clean my code , so I copied its totality in a new workbook ... and I got the following problem:
"User-defined type not defined ..." on the line
Dim pto As New genyBot
pto is used in the code below :
Private Sub btnLogin_Click()
If (Not pto.IEexists) Then pto.CreateIE
If (Not pto.StateLogin) Then
Call buttonsOFF2
'pto.AutoLogin = True
pto.UserName = uname
pto.Password = upass
info ("Start login")
If (Not pto.Login) Then
MsgBox "Login failed"
Call buttonsOn
Else
'Call buttonsOn ' xxxmodif
'btnLogin.Enabled = False
'btnLogout.Enabled = True
'info ("Login OK")
End If
End If
End Sub
I made a thorough search of this genybot object but could not find it .
Is there some hidden code in which this object is mentioned and that I would have forgotten in my code duplicate?
Has anybody an idea?
Bookmarks