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

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

Similar Messages

  • MS-Word Macros with paramers via OLE

    Hi,
    This is probably more of an MS-Word question than a Forte question,
    but somebody out there might have done this before...
    I have some MS Word macros (Originally WordBasic, but recently they
    underwent automatic conversion to become Visual Basic) which take
    parameters.
    I used to call these macros from Forte using DDE.
    These days, it's a lot more fashionable to use OLE automation than
    DDE so I thought I'd give that a go.
    But I can't.
    Word.Applicaiton has a Run() method to run macros, but not macros
    with parameters. Is there a neat way of getting macro parameters
    across to Word?
    - Ed.
    Eduard E Havelaar | For the foolishness of God is wiser
    Information Services Section | than man's wisdom, and the weakness
    University of Canterbury | of God stronger than man's strength
    Christchurch, New Zealand | - I Cor 1:25

    have a look at this here article:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • I'm using an iBook G4. I'm having a problem with a lengthy Microsoft Word (2003) document crashing. It keeps telling me that there's a problem and then working and working. I have to do a forced shutdown.

    I'm using an iBook G4. I'm having a problem with a lengthy Microsoft Word document. It keeps freezing when I try to make a change in it. The computer is working and working. Then I have to use a forced shutdown. And it starts all  over again. Suggestions?

    Is there sufficient free space on the iBook's startup disk (typically called Macintosh HD)?  The OS and apps use free space to write temporary files, and it free space becomes too low, it can cause the Mac to bog down.  Low free space also makes whatever free space is left fragment into tiny pieces scatter all over the hard drive, making the problem even worse.  If it more than 90% full, you should free up some space.

  • Difference between Word basic and DIADEM script

    I'm trying to program some things in Word via a DIAdem script. One thing I want to do is move to the end of the document. When I turn on the macro editor in Word and press End to move to the end of the document, the Word basic editor comes up with this
    Selection.EndKey Unit:=wdStory
    If I enter the above in my DIAdem script (adding Word. in front of it) DIAdem of course doesn't like the "Unit:=wdStory" part. When I execute
    Word.Selection.EndKey
    it only goes to the end of the line.
    There are some other commands I want to do that also have qualifiers like this. How do you tell DIAdem script about the qualifier?
    George

    George,
    Word (and Excel, Powerpoint) come with a large number of constants like the one you used. When you want to use more of them, I recommend to include the type library which comes with those products. DIAdem makes this very easy : Go to the menu in SCRIPT : "Script"=>"type library overview". From the dialog you select the product your are interested in e.g. "Microsoft Word 11.0 Object Library".
    Then click the button "Clipboard". This generates a little code snipped. Goto to your script and insert from clipboard (ctrl+v). What you will see is something like this :
    ' Microsoft Word 11.0 Object Library
    ' D:\Programme\Microsoft Office\OFFICE11\MSWORD.OLB
    Call AutEdTypeLibAdd("00020905-0000-0000-C000-000000000046", "8.3")
    If you now add a line like "MsgBox("wdStory : "&wdStory)" you will teh result you expecct.
    Andreas

  • J6480 not printing to word 2007 or word 2003!

     Relatively new J6480 AIO will not print a word document from  Word 2007 or 2003 version. All other forms of documents from the office suite can be printed  i.e. Excel, power point, microsoft pub. etc. Even pdfs. Any suggestions?

    Don't know if you can still update your WORD, but this sounds like a common WORD problem, though I have not heard about it with 97. I assume you get the same result if you print to paper, always a good check. If so, then start looking at WORD.

  • Convert PDF with  Arabic  content to word /Excel .

    I have problem , I plan to buy Adobe acrobat  pro  for my ORG , The main target to buy it , to convert PDF a Arabic  content to word or Excel , I download trial version from Adobe acrobat pro  , and when i convert PDF English content  it's fine , but when i  convert PDF with Arabic content  , the result is bad the  word become letters and  the documents become not readable , Pleas  help me cause the main  target is convert Arabic PDF to Word .
    " the mean problem is  when i convert PDF with Arabic content to word the result is bad the   document become unreadable .
    thanks , wait for replay.

    HI,
    Adobe Acrobat is a special PDF viewer which is technically develop for the whole world to read any PDF file which a user wants to read. It's basic languages are:
    English (US)
    English (UK)
    Arabic
    Italian
    Japanese
    Spanish
    German
    But when you going to export the PDF file the arabic language will not support.
    Regards,
    Florence

  • RoboHelp for Word cannot open Word with Word 2007

    Thanks for your leignancy, I'm having trouble even starting
    to work with RoboHelp. I think I need detailed explanations. I did
    spend hours sifting through Robohelp's Help and this Forum, I'm
    stuck.
    I am trying to use
    RoboHelp for Word 7.0 , build 001, with Word 2007 on Vista.
    I need to work on help projects created with a previous
    version of RoboHelp.
    For some reason, when I open RoboHelp, the .doc file opens in
    Word next to it, but then RoboHelp freezes for several minutes,
    then I get a dialog box that says
    "RoboHelp" could not open Word .
    Then anytime I try to modify a topic in my help file, I get
    the same stall and error message, and my Word document stays stuck
    at the beginning on my first topic.
    Also, in Word,
    all Robohelp options don't work. I can't search for a topic
    for instance to locate it and modify it. When I click on search for
    a topic from the menu on top, nothing happens at all. If I click on
    search a topic from the right-click menu, then I get a message that
    because of security or confidentiality settings, the
    Macros don't work.
    I tried re-activating all Macros in Word 2007 Options, I
    closed everything, even re-booted the computer, but to no avail.
    Also, I tried saving my .doc into a .docx (Word 2007 format)
    to see if the Macros would be compatible then, but I got the exact
    same results.
    Right now, RoboHelp and Word don't seem to be "talking" to
    each other right, and the Macros don't work.
    Plus: I tried to test a modification I made in the .doc file
    by generating the WebHelp, but that didn't work either, I got an
    error message saying that the file couldn't be opened, but the path
    to the file was all wrong, with folder names I don't even have on
    my computer.
    If someone could figure this one out for me, I'd be very
    thankful, I'm the kind of person who likes something to work in a
    simple, linear way, 1-2-3... This is totally confusing for me right
    now.

    Ok, isn't that what I did when I re-activated the Macros in
    Word 2007?
    Word Options / security - confidentiality center / Parameters
    Activate all Macros (the lowest one on the list)
    Did that already. Also, I made backups of my projects, and
    tried with a new "brew" just in case I had messed it up along the
    way somewhere.
    First thing I did when I opened it again was change the
    output to WebHelp instead of WinHelp 4, since I can't open that in
    Vista anymore.
    I can generate the help in that format, but either way I try
    to make any modification it's not taken into account when I
    generate it.
    Example:
    In the french help project which I'm working on, I had a
    tittle that was miss-spelled.
    I tried modifying in in the Word .doc document, then generate
    the help, but the title was still wrong.
    So I tried changing in directly in Robohelp with the topic's
    properties.
    When I clicked OK, it stalled forever again, and then it said
    it couldn't take the modifications into account.
    And any text I cut and paste or changed in the .doc on Word
    remains unchanged in the WebHelp....
    Right now, the more I try, the more I'm stuck and the more
    questions I get. I'm seriously thinking I'd need some live
    coaching, on a chat or something, to get me started on the right
    track. Is there anyone who can do that? I'm so awfully stuck right
    now. And I feel like I'd unfurl a tsunami of ridiculous questions
    if I posted them all on the Forum now...
    *EXTRA*
    I did all the updates (7.0.3) and right now I'm re-installing
    everything.
    Arghhh.
    I missed one of the last days of ski this season, spent my
    whole week-end with this.
    I'm trying to sound rational and calm, but I'm actually so
    tired and exasperated, I'd have jumped through the window already
    if we weren't on the first floor... Still stuck at Step 1...
    What am I missing??

  • Ole2 word.basic inserts at bookmarks

    Has anyone been able to insert at a bookmark in word?
    I copied code from http://technet.oracle.com/products/developer/pdf/oleword.pdf
    but it always inserts at the top of the file and not at the predefined bookmark
    anu ideas?
    Mick

    I make a template document (word document) with bookmark. I open the file. using ole word (from developer form) 'go to bookmark', then insert text. Look for word basic from WinWord ver. 6.
    Handojo Goenadi
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Mick ([email protected]):
    Has anyone been able to insert at a bookmark in word?
    I copied code from http://technet.oracle.com/products/developer/pdf/oleword.pdf
    but it always inserts at the top of the file and not at the predefined bookmark
    anu ideas?
    Mick<HR></BLOCKQUOTE>
    null

  • File locking with OSX Server & Microsoft Word

    We have a small office LAN based on a Airport Extreme bases station. Periodically Microsoft Word reports a break in connection to the shared folder where we store documents to get disconnected. When that happens and the user reconnects to the share, the user gets the file read-only message for the Word document that was open at the time.
    I have found that in order to clear the read-only flag, I have to restart the server and open the Word file on the server with the ID of the user who was editing the file on the remote computer. Only that seems to clear the file locking that causes the file to be read-only.
    I cannot figure out a less drastic way to release the lock file. I don't see any hidden temp files in the same folder as the document that is locked for editing found by ls -a or in the root direction of the shared folder in the .TemporaryItems/folders.<UID> that seems to be holding the lock.
    I have run chflags nouchg <Word file> from Terminal, but that seems to have no effect either. I also used xattr to see if there were any locks held that way, but I don't see anything that way either.
    File sharing to Macs only, which are configured just to use AFP through OSX Server.
    Does anyone understand how the file locks of Word documents can be released directly with out restarting the server?
    I should add that the underlying problems seems to be WiFi related. The behavior is that the WiFi connection seems to break long enough that the shared volumes disconnects. Outlook also causes a break. This behavior seems to have started with 10.9 and the purchase of new Retina Display MacBook Pros. I turned off AppNap on the Office applications but that is not clearly helpful. I also have been told the problem seems more likely to occur when Word is open in the background and another program like Outlook is in the foreground.
    Any suggestions appreciated.

    Apple write an operating system and also produce file sharing software as part of that to be used as a file server. Apple provide documentation for third-party software developers on how they should write software to work with Apple's software and also give those developers early access to new versions so those third-party developers can test and if needed make adjustments and issue updates to cope with any Apple changes.
    Some third-party developers are good at dealing with this, some are bad, and some totally ignore what Apple does and give the impression they don't care if their product works properly or not. I think we can all judge where Microsoft sits.
    It appears Microsoft have never paid any attention in particular to how Apple expect file-locking to be handled when accessing files on a Mac server. There have been problems for years and years and years with Office. Two other problems I have seen which seem different to yours but probably related are -
    With Office documents it is supposed to be possible for more than one person to edit the same file at the same time, consider it a miracle if this actually works
    With Office in particular Word, there is an auto-save function, unfortunately the way this seems to be implemented it seems that Word creates a new temporary file each time it auto-saves the document and keeps all the previous temporary files open still, this eventually means potentially over a hundred temporary files are open - just for one Word document and you can then hit a limit on the total number of files you are allowed to have open at the same time. At this point further auto-saves fail, and you also encounter great difficulty doing a real full save of the document.
    I do not hold Apple completely blameless over this issue, it is likely their file-locking implementations change too often, and have inadequate documentation, however even considering this a company the size of Microsoft with the amount of sales (and profit) they derive from Office for the Mac has no excuses at all for failing to put the effort in to resolve any such clearly critical problems.
    We could go on and on about other areas where Microsoft don't play by the (software) rules. Even in Windows Office does not obey the standard print dialog rules Microsoft specified themselves!
    Unfortunately not only is Office for Mac upgraded infrequently, but even when new paid for upgrades are released Microsoft have a history of still not fixing bugs. It goes without saying that a mere free update is even less likely to actually fix a bug, typically such free updates only address security issues. The next version of Office is going to be Office for Mac 2014 see http://www.macworld.com/article/2106643/microsoft-will-release-a-new-version-of- office-for-mac-this-year.html
    One area I confidently predict Microsoft not to resolve in Office for Mac 2014 is that fact that Word for Mac still does not support right-to-left languages like Hebrew and Arabic. This is despite the fact that OS X itself has supported this for years and years, and despite the fact other Mac programs support this including the free TextEdit and Pages - both of which can read Word files. Some people may remember that at one point the Israeli Government temporarily banned all Microsoft software over this issue. See http://apple-beta.slashdot.org/story/03/10/15/2215249/israeli-government-suspend s-microsoft-contracts This issue goes back over TEN years!!
    I note that Microsoft has now taken their OfficeForMac blog offline, probably due to the weight of criticisms. I would not say it is due to out-right anti-Microsoft hate, that war ended long ago. We just want products that work. I myself do use Microsoft products, even at home - where they are the best solution, so I use Microsoft Media Center for example. Sadly this is now being neglected by Microsoft.

  • How to Scan a Paper Doc & Convert It with OCR to a Word Processing Format

    In an effort to save others with a similar need some time, I am posting a simple method of using he iPhone to scan a document and convert it, using optical character resolution, to an editable word processing format, usable on computers or iPhones and Android smartphones - all with free apps.  I found no free one-stop-shopping apps that did the job themselves.
    To begin, use the DocScan app to scan the paper document. this results in an Acrobat file (pdf).  If the document is already in pdf form, move on to the next step.
    Next, upload the pdf file to your Google Drive workspace, which automatically puts it through an OCR conversion, Google Drive automatically recognizes the text within pdf files uploaded from iPhones.
    Then open the file within Google Drive, select Open In and choose the Able2Extract app.
    Select the pdf file in Able2Extract and convert it to an MS Word (docx) file, which can be opened by Pages, Word or other word processing programs.  It can also be converted to a spreadsheet or presentation MS Office format.
    Finally, transfer the new docx file to the Documents app, the Dropbox app or another storage app, from which a word processing program can access it for editing.
    Many apps, including Able2Extract, convert all types of files into pdf format when going the reverse direction.

    Good day Larry,
    Are you referring to CreatePDF's ability to export existing PDF files to Word?  I want to confirm as Adobe CreatePDF doesn't have any sort of interface with scanners.
    Let me know a bit more about how you're creating your PDF files and then how you're using the CreatePDF service and I may be able to answer your question (or at least try!)
    Kind regards,
    David

  • I have upgraded to Pages 5.0.1 and now I cannot print or pass along "comments" in the text of a document. I previously was able to convert the Pages document, with comments, to a "Word" document so that others could view the edited text. How do I do that?

    I have upgraded to Pages 5.0.1 and now I cannot print or pass along "comments" in the text of a document. I previously was able to convert the Pages document, with comments, to a "Word" document so that others could view the edited text. How do I do that?

    When you installed Pages v5, it automatically moved the older Pages ’09 v4.3 into /Applications/iWork '09 folder. If you want normal comment interoperability, you are advised to resume using the older version of Pages. Newer, is certainly not better with Pages v5.

  • How to get rid of the blue underline with green arrows on words and then a pop-up ad appears.

    How to get rid of the blue underline with green arrows on words and then a pop-up ad appears.

    Click here and follow the instructions, or if they don't cover the type of adware on the computer, these ones. If you're willing to use a tool to remove it(you don't need to, but may find it easier), you can instead run Adware Medic; this link is a direct download.
    (119795)

  • Creating Materialized View with the Distinct key word

    Hi
    I need help to create Materialized View with the Distinct key word.
    my query is
    select distinct col1, col2 from t1;
    is there any alternate of DISTINCT because I can not refresh the MV as fast on demand if I am using it and Fast on Demand is a must for me.

    hi
    check out this link
    http://download-west.oracle.com/docs/cd/B12037_01/server.101/b10736/basicmv.htm#i1007299
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/intro.htm#sthref183
    hope this helps
    CHeers

  • Posting to a blog from Word 2007 or Word 2010 with pictures

    Ok, this works fine SharePoint2010 with both Word 2007 and Word 2010.
    When I try to publish a post that has pictures in it to a SharePoint2013 blog from Word 2007/2010 I get an error stating 'word cannot publish the pictures in this post'. This happens weather I use 'Launch blogging app' from the SharePoint2013 'Blog tools'
    menu or launch Word2007/2010 independently and publish from there. I presume I have setup the 'Manage accounts' section to publish to the blogs correctly as the 'Picture' options do say 'SharePoint blog'.
    Using SharePoint2013 'Create a post" option works just fine with images also.
    This is quite maddening as I am trying to set up test cases so my agency can decide on SharePoint2010/2013. The users appreciate the ability to use the tools they are familiar with to create the blog entries (Word2007/2010) in SharePoint2010 and it is not
    a confidence booster when I cant get SharePoint2013 to work.
    I have installed both SharePoint2010 and 2013 on independent virtual machines to testbed. I used practically all the default settings.
    Any ideas or options for me?
    I would be willing to deal with some type of paid support incident if that is how this must be resolved.

    here is the example f international Characters : ÅÄÖ or something like Jon
    Löh....
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Opening a word document in WORD with labview

    Hi, i am trying to open a word document in WORD with a VI, but i can't get
    it to work i've tried the command VI but it only opens applications, because
    when i type the path where the *.doc file is it doesn't open a file? Does
    anyone knows which VI i need?
    Thanks in advance,
    Best Regards,
    Thijs Boerée

    Hi Thijs,
    You will need to use ActiveX interface.
    Try this example :-
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B123AE0CBC08111EE034080020E74861&p_node=DZ53004&p_source=external
    Regards
    Ray Farmer
    Regards
    Ray Farmer

Maybe you are looking for

  • Can I link an OS10.4.11 Mini to a new Mini with Lion?

    After lightning fried the video card in my Mini, which runs Tiger, I'm looking at a new Mini. My question is: Can I link the old Mini to the new one and use it as a back-up hard drive and CD/DVD burner? What do I need to do to make it work? Aside fro

  • Getting error during write back operation in OBIEE

    Hi Experts I have implemented the Write back operation in OBIEE . My xml code is <?xml version="1.0" encoding="utf-8"?> <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1"> <WebMessageTable lang="en-us" system="WriteBack" table="Messag

  • Is there any upragde tools for SAP B1 to SAP ERP?

    Hi, I know, SAP B1 and SAP ERP are totally different SAP products. In my mind, maybe we should implement the new SAP ERP, and then, migrate the old master data from B1 to ERP... So, is there any upragde tools or procedure (or data migration tools)for

  • Facetime will not connect

    We have two iPhone 4's and two iPod Touch 4th Gen in our household. Can't seem to make a connection on Facetime when initated from one iPod Touch to the other. Going the opposite direction, it works fine and will connect for a video chat. FaceTime to

  • Crystal Reports XI - printers dialogbox dont open

    hi all sory my bad english i have a problem, in mi add-on I call the dialogbox of printers. the same code for times functions others not. Some times the same ard calls dialogbox in one machine and another machine not. in the menu Event Print i have t