Skip to Content
0
Former Member
Sep 27, 2005 at 07:08 AM

OLE - Translate from VB to Abap

39 Views

Hi All,

I'm writing a program in OLE that creates a Word document with a table

inside.

I want to change the rows width. I run a macro in Word and I got this VB

code :

Selection.Tables(1).Rows(3).SetHeight RowHeight:=33.85, HeightRule:= _

wdRowHeightAtLeast

I tried to translate to abap:

get property of gs_tables 'Rows' = gs_rows.

CALL METHOD OF gs_rows 'SetHeight'

EXPORTING

#1 = '33.85' .

but it doesn't work. I know I need to put somewhere the row number..

Does any one have any idea ?

Thanks,

Michal.