Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP not recognising macro
#1
Not Solved
Hi, I want to automate a macro excel
But QTP could not record a single operation done on Macro.
Give solution for same

Activities to be performed on Macro excel:
Selecting a drop down
Clicking a button
fetching data
etc etc

Thanks in advance

Reply
#2
Not Solved
Hi Mayuri,

I have come to this forum with a similar problem. Where you able to find a solution for this ???

Any help would be highly appreciated.
Thanks..
Reply
#3
Not Solved
Mayuri and Rita,

Instead of recording if you want to Run a macro you need to work with Excel Object. For Example it goes like this:

Code:
set ex=CreateObject("Excel.Application")
set wb=ex.Workbooks.add
set ws=wb.Sheets("Sheet1")
wb.RunAutoMacro ''''what ever the macro you want to Run which is inbuilt.

Also there are other methods to work with like:
UpdateLinks
Openlinks
Setlinksondata
so on and so far


Try this and let me know if it works.
Reply
#4
Not Solved
Krr,

we can use "wb.RunAutoMacro" to run the macro.
But how to perform an operation like Selecting an item from a drop down list on the sheet?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  how can i click a macro button in excel using vbscript arpan 1 3,586 10-03-2017, 06:27 AM
Last Post: supputuri
  Code not recognising Browser object as existing brigna 0 1,715 12-04-2014, 08:32 PM
Last Post: brigna
  Automate the working of an macro in excel RitaG 1 2,827 11-02-2012, 03:36 PM
Last Post: vjjohnson04

Forum Jump:


Users browsing this thread: 1 Guest(s)