+ Reply to Thread
Results 1 to 4 of 4

can i supress "can't find the data" dialogue box with FORMULA.FIND and FORMULA.REPLACE?

  1. #1
    Forum Contributor
    Join Date
    09-23-2008
    Location
    Rhode Island
    MS-Off Ver
    Excel for Mac 2011 and 2007 on PC
    Posts
    265

    can i supress "can't find the data" dialogue box with FORMULA.FIND and FORMULA.REPLACE?

    i'm looking for a FALSE return value from these functions if they can't find the data. I don't know if i get that as well, but currently, macros just interrupted by dialogue box that says "Microsoft Excel can't find the data you are looking for".

    i'd like to supress that response and simply have the function return FALSE if possible.

    thanks,

    brian

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: can i supress "can't find the data" dialogue box with FORMULA.FIND and FORMULA.REPLACE

    It would help if you posted the code that you are using, and describe what you expect the code to do.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Contributor
    Join Date
    09-23-2008
    Location
    Rhode Island
    MS-Off Ver
    Excel for Mac 2011 and 2007 on PC
    Posts
    265

    Re: can i supress "can't find the data" dialogue box with FORMULA.FIND and FORMULA.REPLACE

    a couple examples

    Please Login or Register  to view this content.
    so i'm looking for a word and deleting it but since i don't know how many occurences there are other than less than 10 so sometimes the function bogs down because i get a dialogue box that says "Microsoft Excel cannot find the data you are looking for" and I have to manually clear that each time it comes up. I don't know of an argument to that function that can suppress that return. I would have assumed if it can't find what you are looking for it would return FALSE.

    another way up the same mountain which gives me less dialogue boxes but doesn't get me out of this altogether

    Please Login or Register  to view this content.
    that replaces all instances of purchases with nothing but it returns a dialogue box telling me the number of replacements it made so it doesn't allow the macro to execute without my input. similar kind of problem. don't know if there is a way from within these functions or prior to executing them that i can turn off the dialogue box response. this is further complicated for folks to respond to, because, as you can see, i write in XLM.

    thks,

    brian

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: can i supress "can't find the data" dialogue box with FORMULA.FIND and FORMULA.REPLACE

    That's not VBA code. VBA code would be like

    Please Login or Register  to view this content.
    That will not give you any messages - once you take out the MsgBox line, of course.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 08-20-2014, 07:14 AM
  2. Replies: 6
    Last Post: 03-07-2014, 10:34 PM
  3. Find id"" and replace with id"consecutive number" 3071 entries
    By RoyLittle0 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-19-2012, 07:27 AM
  4. Replies: 4
    Last Post: 02-26-2012, 02:38 AM
  5. Using "Find and Replace" to amend formula
    By Amphibia07 in forum Excel General
    Replies: 2
    Last Post: 09-01-2010, 09:28 AM
  6. How to prevent "Excel cannot find any data to replace" message?
    By fedos in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-29-2010, 12:09 PM
  7. The string of "Find what:" in Find and Replace dialog box to always highlight itself
    By chrisneu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2009, 09:04 AM

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