View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
tedd13 tedd13 is offline
external usenet poster
 
Posts: 22
Default Stop a Macro if no Data found

I have a macro that imports a text file. Sometimes the text file contains no
data. I have the macro display a messge box saying that there is no data.
What I would like is for the macro to stop when the user clicks OK on the
message box.

Does anyone know the code for that?

Thanks