I have an issue regarding selecting the button in marcos (Excel sheet) in QTP and am not able record the clicking button operation in excel sheet.
Marcos(Excel sheet)
|
In VBA In the module add the macro as
Code: Sub button1_click () and then right click on the button and assign the macro to the button. Try and tell if it works.
Please vill u explain in clear words.
iam not getting the above code.. Thanxs.
Can you explain your question clearly and in detail? I hope you are talking about macros and not 'marcos'
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
(04-18-2009, 02:26 PM)Ankur Wrote: Can you explain your question clearly and in detail? I hope you are talking about macros and not 'marcos' Right, Iam talking about Macros only. In Macros i have few worksheets able insert data using this script. Example: Code: Set obj=getobject(Excel.Application) After inserting the data value i want clicking a button in that sheet only. Here am getting any idea how to click a particular button in the following worksheet. Please can u help me. Thanks. Right, Iam talking about Macros only. In Macros i have few worksheets able insert data using this script. Example: Code: Set obj=getobject(Excel.Application) After inserting the data value i want clicking a button in that sheet only. Here am getting any idea how to click a particular button in the following worksheet. Please can u help me. Thanks. (04-18-2009, 08:53 PM)qtp1983 Wrote: [quote='Ankur' pid='5344' dateline='1240045012'] Right, Iam talking about Macros only. In Macros i have few worksheets able insert data using this script. Example: Code: Set obj=getobject(Excel.Application) After inserting the data value i want clicking a button in that sheet only. Here am getting any idea how to click a particular button in the following worksheet. Please can u help me. Thanks.
You mean that you are able to record the macros but when you are clicking the button then click event is not getting recorded. is it so????
No, Iam not even record any of the operation in macros sheet ike insert data and clicking the button.
|
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
QTP not recognizing two Excel (Marcos) application. | yaseenarfath | 2 | 3,131 |
06-01-2009, 06:36 PM Last Post: Ankur |
Users browsing this thread: 2 Guest(s)