Consulting

Results 1 to 2 of 2

Thread: Macro to open dialogue box with specific option selected

  1. #1
    VBAX Regular
    Joined
    Oct 2022
    Posts
    27
    Location

    Macro to open dialogue box with specific option selected

    In MS Word, I want to create a keyboard shortcut to open the "Insert Symbol" dialogue box with the Symbol font selected in the Font field.

    I know how to create a keyboard shortcut to run a macro, and I have a macro with the command "Application.Dialogs(wdDialogInsertSymbol).Show", which opens the dialogue box.

    However, normally when this dialogue box is opened, it has the last used font selected in the Font field. Is there a way to open this dialogue box with a specific font ("Symbol") selected in the Font field?

    (A hack like 'SendKeys "%fSymb{DOWN}{ENTER}' will get the job done, but I am wondering whether there is a parameter that can set the Font field directly.)

  2. #2
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •