Jump to content
Sign in to follow this  

WordConstants UDF

Recommended Posts

Here I publish my WordConstants UDF. I hope it shall be usefull.

An example that uses Word constants from my UDF:

It inserts some blank pages.

$oWord  = _WordCreate(@ScriptDir &"\Guide.doc", 0, 1)
$oDoc    = _WordDocGetCollection($oWord, 0)
$NumPages = _WordDocPropertyGet($oDoc, "pages")
    $i = $i - 1
    $oWord.Selection.GoTo($wdGotoPage, $wdGotoNext, 1)
Until $i = 1
    $oWord.Selection.EndKey($wdStory, $wdMove) ;updated script insert a new page at the end of the document
_WordDocSave ($oDoc)
_WordQuit ($oWordApp)

UDF File:


Edited by realshyfox

Learn, learn and ... learn

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...