Results 1 to 5 of 5
  1. #1
    Star Lounger
    Join Date
    Apr 2002
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Open Option Dialog Box (Word 2000)

    I want to know how can I open the option dialog box by using the send key. I have tried


    Sub ShowOptionWindow()
    SendKeys "%TO"
    End Sub

    this command only works on the immediate window. Trying SendKey "%TO" open the options dialog box in vba editor. So what can I do to make it works in Word

  2. #2
    Super Moderator
    Join Date
    Dec 2000
    Location
    New York, NY
    Posts
    2,970
    Thanks
    3
    Thanked 29 Times in 27 Posts

    Re: Open Option Dialog Box (Word 2000)

    Is:

    Dialogs(wdDialogToolsOptions).Show

    not an option?

  3. #3
    Star Lounger
    Join Date
    Apr 2002
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Open Option Dialog Box (Word 2000)

    That works, about if I want to navigate to specific tab in the options dialog box. For example, the spelling tab. Then I may want to check spell as you type false. So can I also do that. After that I can either close the dialog automatically or ask the user to close it.

    Thank you

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Open Option Dialog Box (Word 2000)

    This isn't a general solution, but Word just happens to have some of the Options tabs isolated, perhaps because they are linked from buttons in other dialogs. Try this one:

    Dialogs(wdDialogToolsOptionsSpellingAndGrammar).Sh ow

    (I only saw one, inconsequential difference between this one-tab dialog and the tab in the Options dialog.)

  5. #5
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Open Option Dialog Box (Word 2000)

    Actually, upon re-reading your question, the better approach might be to set the property directly in code:

    Options.CheckSpellingAsYouType = False

Posting Permissions

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