+ Reply to Thread
Results 1 to 7 of 7

Macro answers warning automatically

  1. #1
    Registered User
    Join Date
    03-26-2010
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    7

    Macro answers warning automatically

    Hi all,

    Is there any way to get a macro in word to answer a pop up box for you?

    I want to do "find and replace" on a selected area of a document. This I can do without a problem, but Word asks the question: "word has finished searching the selection. Do you want to search the remainder of the document?" Answers: "Yes" or "No".

    The answer will always be "No", but can I get the macro to answer this for me?

    Any help much appreciated

    Paddy
    Last edited by Paddy23; 03-29-2010 at 03:08 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Macro ansers warning automatically

    Post your code
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    03-26-2010
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Macro answers warning automatically

    So, this is the code I have currently. on running the macro, the question appears, "word has finished searching the selection. Do you want to search the remainder of the document?" Can I get the macro to answer "No"?
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Macro answers warning automatically

    I would also like to see an answer to this question!

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Macro answers warning automatically

    maxwaldmann,

    This is a 3 yr old thread. Its better you open a new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  6. #6
    Registered User
    Join Date
    03-20-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Macro answers warning automatically

    In any case I found the answer elsewhere...

    You have to change ".Wrap = wdFindAsk" to ".Wrap = wdFindStop"/".Wrap = wdFindContinue", e.g.:

    Please Login or Register  to view this content.
    Last edited by arlu1201; 04-04-2013 at 08:07 AM.

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Macro answers warning automatically

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. In order to put code tags, either type [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] at the end of it, OR you can highlight your code and click the # icon at the top of your post window.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1