View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Kartikey Kartikey is offline
external usenet poster
 
Posts: 1
Default 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