Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Marcos(Excel sheet)
#1
Not Solved
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.
Reply
#2
Not Solved
In VBA In the module add the macro as

Code:
Sub button1_click ()
-----------
-------
End Sub

and then right click on the button and assign the macro to the button.

Try and tell if it works.
Reply
#3
Not Solved
Please vill u explain in clear words.
iam not getting the above code..


Thanxs.
Reply
#4
Not Solved
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
Reply
#5
Not Solved
(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)
obj.worksheets("INPUT").range("bot").value="3"
by using this script able to insert the data in a particular sheet.
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)
obj.worksheets("INPUT").range("bot").value="3"
by using this script able to insert the data in a particular sheet.
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']
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)
obj.worksheets("INPUT").range("bot").value="3"
by using this script able to insert the data in a particular sheet.
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.
Reply
#6
Not Solved
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????
Reply
#7
Not Solved
No, Iam not even record any of the operation in macros sheet ike insert data and clicking the button.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP not recognizing two Excel (Marcos) application. yaseenarfath 2 3,017 06-01-2009, 06:36 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)