B
Berlie
I have some macro code that in part created a new section then unlinks
the section's footers from the previous section.
I have one person who is using it that is getting a Command Not
Available error message.
The section of code that is giving the error is below with the line
highlighted when debugged noted.
Dim sCurSection As String
sCurSection = Selection.Information(wdActiveEndSectionNumber)
ActiveDocument.Range(Start:=Selection.Start,
End:=ActiveDocument.Content.End).PageSetup.VerticalAlignment =
wdAlignVerticalTop
With ActiveDocument.Sections(sCurSection)
With .Footers(wdHeaderFooterFirstPage)
.LinkToPrevious = False
End With
With .Footers(wdHeaderFooterEvenPages)
.LinkToPrevious = False <---- this line is giving the
error
End With
With .Footers(wdHeaderFooterPrimary)
.LinkToPrevious = False
End With
The person with the error is using Microsoft Word 2003 on a Windows XP
machine. I also use Word 2003 on an Win XP machine and don't get the
error.
Any ideas?
the section's footers from the previous section.
I have one person who is using it that is getting a Command Not
Available error message.
The section of code that is giving the error is below with the line
highlighted when debugged noted.
Dim sCurSection As String
sCurSection = Selection.Information(wdActiveEndSectionNumber)
ActiveDocument.Range(Start:=Selection.Start,
End:=ActiveDocument.Content.End).PageSetup.VerticalAlignment =
wdAlignVerticalTop
With ActiveDocument.Sections(sCurSection)
With .Footers(wdHeaderFooterFirstPage)
.LinkToPrevious = False
End With
With .Footers(wdHeaderFooterEvenPages)
.LinkToPrevious = False <---- this line is giving the
error
End With
With .Footers(wdHeaderFooterPrimary)
.LinkToPrevious = False
End With
The person with the error is using Microsoft Word 2003 on a Windows XP
machine. I also use Word 2003 on an Win XP machine and don't get the
error.
Any ideas?