Hi Team,
I am looking to connect perfromance center 12.20 using excel macro.
facing "Compile Error : User-defined type not defined" at the first line of the code. which is - 'Public tdC As New tdConnection'
if i comment that line and try to create object using createobject function - "Set tdC = CreateObject("TDApiOle80.tdConnection")" facing error message "activeX component can't create object".
I suppose i am missing some dll files. kindly look into below code and suggest. Thanks in advance
Public tdC As New tdConnection
Sub ConnectToQualityCenter()
Dim qcURL As String
Dim qcID As String
Dim qcPWD As String
Dim qcDomain As String
Dim qcProject As String
Dim tdConnection As Object
On Error GoTo err
qcURL = "http://hppcbccwd2alm01:8080/qcbin/start_a.jsp"
qcID = "iiiiiii"
qcPWD = "ppppppppp"
qcDomain = "PERSONAL"
qcProject = "Migration"
Application.StatusBar = "Connecting to Quality Center.. Wait..."
Set tdC = CreateObject("TDApiOle80.tdConnection")
tdC.InitConnectionEx qcURL
tdC.Login qcID, qcPWD
tdC.Connect qcDomain, qcProject
Application.StatusBar = "........QC Connection is done Successfully"
Exit Sub
err:
'Display the error message in Status bar
Application.StatusBar = err.Description
End Sub