View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
JLatham JLatham is offline
external usenet poster
 
Posts: 3,365
Default How to error trap "... cannot find the data..." message?

Could be as simple as adding
Application.DisplayAlerts = False

or
Application.DisplayAlerts = False
On Error Resume Next

before the .Find line in your code.

Would help more to see the macro code you're using.



" wrote:

MyList has has several columns showing the stock codes, their closing
prices, etc. The macro program I use runs down MyList and checks off
the codes line by line against the ExchangeList. If the codes are
found, indicating there were trading for them, it then updates the
data on MYList. When there was no trading for a particular stock,
Excel prompts me with the message: "Excel could not find the data you
are searching for". At that stage I have to press the Enter Key to
clear the OK sign and allow the program to continue on to search for
the next code till the end. There were days when I had to press the
Enter Key over a hundred times. Is there a way for the program to do
this automatically by adding some codes to it? Thanks for any help.

Tom