View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
GS[_2_] GS[_2_] is offline
external usenet poster
 
Posts: 3,514
Default If Macro Run From Form Control Button/Shape, "Find" Command Not Working

Code:
--------------------

Sub Test()
Stop
End Sub

--------------------


At the "Stop" is when I'd try to do a find on the workbook while the
report was still running the macro.


You can't execute another macro via the UI so as to interupt code that
is already executing. You have to wait for it to finish.

What you can do is prompt the user for 'Find' criteria and have the
running code process that.

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion