Group: microsoft.public.word.vba.general
From: =?Utf-8?B?R2VvZmYzMzI=?=
Date: Monday, February 25, 2008 7:35 PM
Subject: VBA Style Changes Effecting Template

Hi,

I have a piece of VBA code that updates styles in a document. The problem is
every time this code executes, the base template is changed and I'm prompted
to save it. What I want is for the change to only apply to the current
document.

An example of the code is
If langUK Then
ActiveDocument.Styles("Normal").LanguageID = wdEnglishUK
Else
If langUS Then
ActiveDocument.Styles("Normal").LanguageID = wdEnglishUS
ActiveDocument.PageSetup.PaperSize = wdPaperLetter
Else
ActiveDocument.Styles("Normal").LanguageID = wdEnglishAUS
End If