B
Berlie
Before installing Microsoft Accounting 2007 the following VBA code in
Word 2007 under Vista worked fine. After installing it gives a Command
Not
Available error on the .LinkToPrevious = False line.
Sub UnLink()
Dim oSect As Section
Dim i As Long
For Each oSect In ActiveDocument.Range.Sections
For i = 1 To 3
oSect.Footers(i).LinkToPrevious = False
oSect.Headers(i).LinkToPrevious = False
Next
Next oSect
End Sub
Uninstall Accunting 2007 and it works fine again. Confirmed problem
with two
other people on different computers running Vista/Word 2007 and then
testing
VBA code before and after installing Acct 2007. The maco is meant to
unlink
all headers and footers in document from previous section.
Any ideas whats going wrong and why?
Word 2007 under Vista worked fine. After installing it gives a Command
Not
Available error on the .LinkToPrevious = False line.
Sub UnLink()
Dim oSect As Section
Dim i As Long
For Each oSect In ActiveDocument.Range.Sections
For i = 1 To 3
oSect.Footers(i).LinkToPrevious = False
oSect.Headers(i).LinkToPrevious = False
Next
Next oSect
End Sub
Uninstall Accunting 2007 and it works fine again. Confirmed problem
with two
other people on different computers running Vista/Word 2007 and then
testing
VBA code before and after installing Acct 2007. The maco is meant to
unlink
all headers and footers in document from previous section.
Any ideas whats going wrong and why?