ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Error on Object variable or with block variable not set (https://www.excelbanter.com/excel-programming/388644-error-object-variable-block-variable-not-set.html)

Kartikey

Error on Object variable or with block variable not set
 
Can any one tell me, whilw running automation script in test partner,
how to select a checkbox from Grid(GUI Object).

My Grid contain hale no of rows and 3 columns. 1) Check Box 2)
Description 3) Detail
i am able to select Grid from window. But within the grid i am not
able to select check box.


Dim l_objGrid As TGUIObject


Set l_objGrid = TestPartner.GUIObject("ClassName=SS32X25_Spread
Label='" & a_strGridTitle & ":'")

error comes when following code comes in picture

l_intMaxRows = l_objGrid.Object.MaxRows

Please tell me why it giving an error as above. I tried a lot by
setting reference library.
Note: Previously it was running fine with Activex. But now i want to
run it with GUI Object


NickHK

Error on Object variable or with block variable not set
 
I'm not familiar with Test Partner etc, but is this supposed to be VBA code
or some flavour of .Net ?

NickHK

"Kartikey" wrote in message
ups.com...
Can any one tell me, whilw running automation script in test partner,
how to select a checkbox from Grid(GUI Object).

My Grid contain hale no of rows and 3 columns. 1) Check Box 2)
Description 3) Detail
i am able to select Grid from window. But within the grid i am not
able to select check box.


Dim l_objGrid As TGUIObject


Set l_objGrid = TestPartner.GUIObject("ClassName=SS32X25_Spread
Label='" & a_strGridTitle & ":'")

error comes when following code comes in picture

l_intMaxRows = l_objGrid.Object.MaxRows

Please tell me why it giving an error as above. I tried a lot by
setting reference library.
Note: Previously it was running fine with Activex. But now i want to
run it with GUI Object





All times are GMT +1. The time now is 05:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com