VBA | Document Properties?

Quick Question -

Is there a way to open Corel's Document Properties document via vba? I want to use it as a means to double check to see if the metadata i inputed via my macro stuck! Sometimes it doesn't so i'd like for the dialog box to pop up after to check. 

Parents
No Data
Reply
  • If what you want is the Document Properties dialog which is on the File menu, place this statement in your code where you would like the dialog to open...

    SendKeys "%F."  ' Note the period after the F

    This sendkeys command performs the key presses ( Alt - F -  .  ) in the window the macro was called from.  Ie. if you call your macro from the main corel window this code will send the appropriate key presses to open the Document Properties dialog.  Note after opening the file menu with alt - F  the period is the shortcut key to open the Document Properties dialog.

    If you call your macro code from the VB Editor, sendkeys will open the file menu in the VB editor.  The period will do nothing in the VB editor file menu because it is not a shortcut key there.

Children
No Data