cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a field Middle Align Using OLE technique?

Former Member
0 Kudos

Hi All,

Please tell me how to make a field Middle Align i.e. Align text so that it is centered between the top

and bottom of the cell.

Please find attached screenshot.

Thanks,

Teja.

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi sharan,

Code as follows:

     CALL METHOD OF

          EXCEL_OBJ

               'RANGE' = CELL_OBJ

         EXPORTING

          #1 = RANGE.

     SET PROPERTY OF CELL_OBJ 'HorizontalAlignment' = 3.

     FREE OBJECT CELL_OBJ.

Former Member
0 Kudos

Hi Vinson,

Thanks for replying.