R
ravi
I am working on a conversion from Word 2003 to Word 2007 and I have
run into a weird problem.
If ResultDoc.Sections.Count = 2 Then
ResultDoc.Sections(2).Headers(wdHeaderFooterPrimary).LinkToPrevious =
True
ResultDoc.Sections(2).Footers(wdHeaderFooterPrimary).LinkToPrevious =
True
ResultDoc.Sections(2).Headers(wdHeaderFooterEvenPages).LinkToPrevious
= True
ResultDoc.Sections(2).Footers(wdHeaderFooterEvenPages).LinkToPrevious
= True
'Below statements are throwing "This command is not
available" (4605) Error
ResultDoc.Sections(2).Headers(wdHeaderFooterFirstPage).LinkToPrevious
= True
ResultDoc.Sections(2).Footers(wdHeaderFooterFirstPage).LinkToPrevious
= True
End If
As you can see only Firstpage (Header / Footer) has the problem while
the other LinkToPrevious setting changes works.
Any idea where the problem can be?
- Ravi
run into a weird problem.
If ResultDoc.Sections.Count = 2 Then
ResultDoc.Sections(2).Headers(wdHeaderFooterPrimary).LinkToPrevious =
True
ResultDoc.Sections(2).Footers(wdHeaderFooterPrimary).LinkToPrevious =
True
ResultDoc.Sections(2).Headers(wdHeaderFooterEvenPages).LinkToPrevious
= True
ResultDoc.Sections(2).Footers(wdHeaderFooterEvenPages).LinkToPrevious
= True
'Below statements are throwing "This command is not
available" (4605) Error
ResultDoc.Sections(2).Headers(wdHeaderFooterFirstPage).LinkToPrevious
= True
ResultDoc.Sections(2).Footers(wdHeaderFooterFirstPage).LinkToPrevious
= True
End If
As you can see only Firstpage (Header / Footer) has the problem while
the other LinkToPrevious setting changes works.
Any idea where the problem can be?
- Ravi