Skip to Content
avatar image
Former Member

How to give Table cell color in MS Word through SAP OLE ?

I need to give Cell Background color in a table which should be downloaded as a Word file from SAP ABAP. I know how to color the text, bold, italic, underlined. But I am not able to find the Cell color for a Table which is in a word file, I can get lot of examples for Excel file with cell color not for Word file.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 03, 2017 at 07:36 AM

    Usually I record a macro in Office to identify the OLE02 methods to be executed, and then translate manually the VBA to Abap.


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Raymond Giuseppi

      Hi Raymond Giuseppi,

      For more clarification,

      In this code ActiveDocument.Tables(1).Rows(5).Height = 30.

      Tables(1) denotes that the name of the table is 'Tables'.

      Height = 30 denotes 30 cm or inch.

      If the equivalent OLE code is there it would be more helpful.

      Thanks in advance.

      Ravivarman P