Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Feb 2004
    Location
    Chicago, Illinois, USA
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Select Button (Word 2002)

    This is simple but I am new at this and cannot figure it out. Within my macro I want to select the No button in the dialog box (which asks if you want to continue) that appears after doing a Replace command. Can someone give me the code to do this.
    <img src=/S/doh.gif border=0 alt=doh width=15 height=15>

  2. #2
    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: Select Button (Word 2002)

    I'm not sure you can control the default button, but depending on how you are setting up your replace, you could test whether setting the "Continue" parameter to "Stop" will prevent the dialog from popping up in the first place. I put those names in quotation marks because it's much less obvious than that. Normally, a recorded replace will have this setting:

    .Wrap = wdFindAsk

    This change will stop the Yes/No dialog:

    .Wrap = wdFindStop

    At least... it should. Does it work? (Is it clear enough where to use it?)

  3. #3
    New Lounger
    Join Date
    Feb 2004
    Location
    Chicago, Illinois, USA
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Select Button (Word 2002)

    Oh how simple. That was it. Thanks.

Posting Permissions

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