Skip to Content
author's profile photo Former Member
Former Member

Macros with WORD.BASIC (MS WORD 2003)

Hi:

I have created a program linked with Microsoft Word with WORD.BASIC object. The program run correctly with MS Word 2002 executing all the methods

....

CREATE OBJECT h_word 'WORD.BASIC' LANGUAGE 'e'

CALL METHOD OF h_word 'APPSHOW' EXPORTING #1 = 'Microsoft Word'

CALL METHOD OF h_word 'FILENEW' EXPORTING #1 = file

CALL METHOD OF h_word 'TOOLSMACRO' EXPORTING

#1 'MACRO1'

#2 = 'RUN'.

....

my serious problem is that the macros include don´t run properly in Microsoft Office Word 2003. Can someone hep me with this issue, please?

Thanks in advance

Abel

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Dec 04, 2005 at 12:23 PM

    check out the following function module.

    RH_START_EXCEL_WITH_DATA

    though this dosent deal with word, you can get the basic idea as to how to handle macro by following the code in this fm.

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2005 at 12:29 PM

    Hi,

    Please check the Fucntion Group DSVAS_MSWORD. It has all the Function Modules related to MSWord interface with SAP.

    Lokesh

    (please reward appropriate points)

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.