Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Automation Examples > Word Document Title Changer

Word Document Title Changer

This program was written using the Microsoft Word Automation Library mentioned earlier in the user-defined functions section. The script in Example 23 scours a directory for *.doc files, and then sets the Title property of each file to its filename while keeping modified dates intact.

Example 23. Word Document Title Changer

#NoTrayIcon ; Hides tray icon

; Include File, Word, and GUI Constants
;=====================================================================
#include <file.au3>
#include <Word.au3>
#include <GuiConstants.au3>

; Change to OnEvent Mode
;=====================================================================
Opt('GUIOnEventMode', 1)

; Declare Global Variables
;=====================================================================

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint