Word.WdInformation would be meaningless, as would Word.wdInformation.wdActiveEndPageNumber. Since you're using late binding, you should be using objWord.Selection.Information(3), since 3 = wdActiveEndPageNumber.
That said, the fact you're even using Selection suggests the code is quite inefficient - there is very little one would need to do in VBA/VBS that requires anything to be selected.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|