View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Balex Balex is offline
external usenet poster
 
Posts: 4
Default How to know if Excel is called by another Office app like Word

Hi,

I have developed, in an Excel template, a macro which should only run when
Excel is used interactively. If Excel is called because somebody has embedded
a worksheet ina Word document, and a user starts Word, which starts Excel to
update the Word document with the newest content of the linked worksheet, I
don't want that macro to run. How can I know, in that macro, if Excel has
been starte by Word, and not by a user ?

Thanks for help.
Balex