The ShapeRange.AlternativeText Property applies to shape objects, not to text ranges. Similarly, the Table.Title Property and the Table.Descr Property
apply to tables, not to text ranges. AFAIK there is no Alt text property for a whole document. Perhaps you're thinking of one of the built-in document properties?
As for "vba code to remove space in the end of each page", that's impossible to address without knowing what is causing that spacing to appear. There is any number of possibilities. In any event, the page layout to some extent depends on what the
active printer is. Consequently, a given page may be 'full' when one printer is in use, but not so when another printer is in use.
Cheers
Paul Edstein
[MS MVP - Word]