Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript for MS-Word

Status
Not open for further replies.

CaptainSensible

Programmer
Jun 27, 2002
7
CH
Hello,
I'm currently using ms-word via Java to convert word files to html, but it also converts track changes from the word file, so I'm trying to find a way to change properties of Word so it doesn't display the track changes, and so doesn't convert them in the HTML version. I'm a beginner in vbscript, so first is it possible to run a script that does this, and if so, could someone please help me out?
Thanks in advance.

Cyril.
 
The script below will open word create a new document and switch off the track changes options.

Change values to True to switch them on.

Dim objWord
Set objWord = CreateObject("Word.Application")
ObjWord.Visible = True
ObjWord.Documents.Add
With objword.ActiveDocument
.TrackRevisions = False
.PrintRevisions = False
.ShowRevisions = False
End With


Regards
Steve Friday
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top