Top "Office-automation" questions

Use this tag for questions related to automating MS Office Products ( Excel, Outlook, PowerPoint, Access, Word, Project, etc ). Automation in this context means the use of an external software to execute a variety of operations on MS Office products.

Running an Excel Macro via C#: Run a macro from one workbook on another?

I am looking to run a macro, let's call it Macro01 from WorkSheet01 on WorkSheet02. Using Microsoft.Office.Interop.Excel …

c# excel vba office-automation
Killing EXCEL.exe Process from C# in a Windows Service

I have a windows service that opens up an Excel spreadsheet via the Microsoft.Office.Interop.Excel.Application object. Application …

excel windows-services office-interop office-automation
how to close a running instance of Word document? (C#)

I could see a lot of very similar threads all around, but nothing seem to give me a solution which …

c# c#-2.0 office-automation running-other-programs
Excel 2007 automation on top of a Windows Server 2008 x64

I’m well aware of the Microsoft support base article stating that it’s not supported to automate office products …

com excel-2007 office-automation
Copy Excel Worksheet from one Workbook to another with Powershell

I'd like to copy (or move) a worksheet from one workbook to another workbook with Powershell. I had done this …

com powershell excel office-automation vba
Rename the Excel Sheet Name in C#

VS 2008 / C#. On passing the File path of a Spreadsheet, i need to rename the Sheet. How to rename the …

c# c#-3.0 office-automation
Getting System.Runtime.InteropServices.COMException Error in Server Side Generated Excel

We have a web application that generates excel spreadsheets and run macros on the server side. It then sends them …

c# .net com ms-office office-automation
How to generate report in word 2010 using c# , dot net, word templates, xml

We have a database application that stores data that we want to report in Microsoft Word. Suppose all information of …

c# .net xml ms-word office-automation
Excel VBA SendKeys not causing IE 9 to save download

I am writing a macro to download a csv file from my company's internal website. For many reasons I can't …

excel vba automation browser-automation office-automation
Printing with advanced options (tray selection, duplex, staple)

We have a project of managing printing documents. At first I wonder why printing options couldn't be set up in …

.net printing duplex office-automation tray