Re: OLE2 questions

From: Carl Alex Friis Nielsen <can_at_gis.dk>
Date: 9 Oct 1998 08:40:11 GMT
Message-ID: <01bdf360$825d3b40$6a02a8c0_at_can_95.gisdk_nt>


anitas_at_trisoft.be skrev i artiklen <361c9a98.13823437_at_145.4.3.97>...

> These are :
> ActiveDocument.Bookmarks("TEST").Delete
> Selection.Tables(1).Select
>
> The problem is ("TEST") and (1)
>
> Any suggestions ?
>
Try the following (based on Excell97 experience):

  1. get a handle to the top level object ( ActiveDocument , Selection )
  2. build an argument list containing the parameter ( 'TEST' , 1 )
  3. extract the Bookmarks/Tables object (GET_OBJ_PROPERTY)
  4. Invoke the method ( Delete , Select )

this has worked for me with WorkBook.WorkSheets(1).Cells(3,3).Value

-- 
Carl Alex Friis Nielsen

Love me - Take me as I think I am
Received on Fri Oct 09 1998 - 10:40:11 CEST

Original text of this message