Hi all,

I have the following:

Code:
      ActiveDocument.Repaginate
      totalpages = ActiveDocument.BuiltInDocumentProperties(wdPropertyPages)
    ActiveDocument.Range.GoTo(wdGoToPage, wdGoToAbsolute, totalpages).Bookmarks("\Page").Range.Delete
I want this to delete the last page in the document.
Is there any reason why it isn't?

Thanks

Martin