Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to access the excel userform using QTP
#1
Not Solved
Hi All,

I want to access the userform and Macros of excel using QTP.

I tried to find the object using QTP properties but It could not work for me.
Below are the code which I have tried:


I have added the below code in the excel and vbs script but getting the error that GetForm is not a valid property

Code:
Public Property Get GetForm() As Object
   Set GetForm = New UserForm1
End Property

dim objExcel, wbkExcel, frm
set objExcel = Createobject("Excel.Application")
objexcel.visible = true
set wbkExcel = objExcel.workbooks.open("C:\formtest.xls")
set frm = wbkexcel.GetForm
frm.show
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to Access MS Excel Controls using QTP gayuamlu 0 2,038 06-13-2015, 02:06 AM
Last Post: gayuamlu
  Controls in MS Access Application using QTP indianinworld 0 2,393 08-03-2011, 02:47 PM
Last Post: indianinworld
  Export data from Excel to access using VB script skancha 1 3,797 10-12-2009, 08:13 PM
Last Post: jsknight1969
  Import Excel data to access using VB Script skancha 3 8,983 10-09-2009, 06:54 PM
Last Post: Saket
  MS Access scripts in QTP naresh.kuna@gmail.com 0 1,996 07-07-2009, 08:11 PM
Last Post: naresh.kuna@gmail.com

Forum Jump:


Users browsing this thread: 1 Guest(s)