Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP not recognising macro
#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


Messages In This Thread
QTP not recognising macro - by mayuri - 02-04-2012, 12:14 PM
RE: QTP not recognising macro - by RitaG - 09-27-2012, 05:55 PM
RE: QTP not recognising macro - by krr - 10-03-2012, 07:40 PM
RE: QTP not recognising macro - by RitaG - 10-04-2012, 12:28 PM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)