I have often Coreldraw files with many pages inside and usually most recent page is last page
So when I open these documents I'd like to open to last page (e.g. page 16)
Is it possible ?
Is your last page the rightmost one in the list of pages?
yes.
In fact this is a 48pages file and page48 is the rightmost page
Changed VBA security to Low but nothing
and this the code
Try change ActiveDocument to Doc in second line
Perhaps loaded document not yet be considered an active document. You should get
Doc.Pages.Last.Activate
Last change worked and file opened to last page but today (after restart) file opens to first page again.
Any idea ?
may be, at the start of CorelDRAW, VBA did not load. Add one line to your code (Beep), its just sound beep (you may remove it later) to know is working VBA-macro or not
Beep
End Sub
And check Tools-Options-VBA