4

How can I close any Office 2007 running application like Word,Excel,Outlook before installing an Office 2007 Add-in in a Visual Studio 2008 Setup Project?

Thanks! Martin

Martin
  • 253
  • 3
  • 8

1 Answers1

2

See here for sample code of how to attach to a running instance of Excel, enabling you to manipulate it (including terminating the instance). See here for sample code of getting the RunningObjectTable, used to get all instances of a specified application.

M.A. Hanin
  • 8,044
  • 33
  • 51