How to open HP ALM from excel VBA

when the below code is run, ALM is not getting launched and there is no error message getting displayed.

Could you please let me know if any changes are to be made to the below code:


Dim QCConnection As Object;

Set QCConnection= createObject ('TDApiOle80.TDConnection')

Dim sUsername, sPassword

Dim sProject, sDomain


sUsername=sheet1.Range(A1).Value

sPassword=sheet1.Range(B1).Value


sProject=sheet1.Range(C1).Value

sDomain=sheet1.Range(D1).Value

QCConnection.InitConnectionEx sheet1.Range(E1).Value

QCConnection.login sUsername,sPassword

QCConnection.connect sDomain,sProject
sai saiAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

xtermieCommented:
Try this
Public QCConnection As Object
On Error GoTo CheckError
Set QCConnection = CreateObject("TDApiOle80.TDConnection")
Dim sUsername, sPassword

Dim sProject, sDomain
sUsername=sheet1.Range(A1).Value
sPassword=sheet1.Range(B1).Value
sProject=sheet1.Range(C1).Value
sDomain=sheet1.Range(D1).Value
QCConnection.InitConnectionEx sheet1.Range(E1).Value
QCConnection.login sUsername,sPassword
QCConnection.connect sDomain,sProject 
'any other code
Exit Sub

CheckError:
MsgBox "Error : " & Erl & Err.Number & " : " & Err.Description
QCConnection.Disconnect
QCConnection.Logout
QCConnection.ReleaseConnection

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
xtermieCommented:
Also there are reported cases where add ins do not work if folders are not properly created
Could you check if the following path exists?
c:\program files\microsoft Office\Office\XLStart\TDAddin\Tasks

Similar issues described here:
https://community.saas.hpe.com/t5/Quality-Center-ALM-Practitioners/Excel-Add-in-problem/m-p/989761#.VVeArOHD9dg
0
xtermieCommented:
provided valid recommendation
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VBA

From novice to tech pro — start learning today.