LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default 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



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Runtime Error '91' Object variable or With block variable not set Alec Coliver Excel Discussion (Misc queries) 2 October 24th 09 02:29 PM
Need help with Error 'object variable or with block variable not set' Francois via OfficeKB.com Excel Programming 5 April 30th 07 03:05 PM
Getting inconsistent Error 91-Object variable or With block variable not set mfq Excel Programming 0 December 14th 05 06:08 PM
Run-time error '91': "Object variable or With block variable not set Mike[_92_] Excel Programming 2 December 30th 04 10:59 AM
Cells.Find error Object variable or With block variable not set Peter[_21_] Excel Programming 2 May 8th 04 02:15 PM


All times are GMT +1. The time now is 01:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"