Quantcast
Channel:
Viewing all articles
Browse latest Browse all 43849

Forum Post: Word 2013 Automation

$
0
0
I have coding to automate Microsoft Word documents.  We set up Word documents and bookmark specific fields and then my program opens the document and fills in the appropriate bookmarked information. This works in older versions of Word, Word 2007, and Word 2010.  In Word 2013, it pulls up the document, but does not fill in the fields.  Debugging shows that the C$EXCEPINFO is giving 06124 in the ERROR-INFO-CODE and I have no idea what this means. Coding: MODIFY wrdBookmarks @Exists (BY NAME @Name "CompanyName")    RETURNING bkExist. IF bkExist = 1    MODIFY wrdDoc @GoTo(BY NAME @What wdGoToBookmark BY NAME @Name "CompanyName")    RETURNING wrdRange    IF wrdRange NOT = 0       MODIFY wrdRange @InsertAfter(BY NAME @Text my-text-field)       DESTROY wrdRange    END-IF. It generates the error on the MODIFY wrdRange @InsertAfter... line. It successfully completes the other line, which find the book and the position in the document of the bookmark, but it fails to insert the data. As I said, it works successfully except in Word 2013.  I was using an older word.def file (trying to keep our programming backwards compatible) and I did create a word15.def file using the msword.olb for Office 2013, thinking perhaps the new definition might do the trick, but no such luck.    Thanks in advance for any help. ~Rebekah

Viewing all articles
Browse latest Browse all 43849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>