How to run Office macros by using Automation from Visual Basic .NET (306682)
The information in this article applies to:
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual Basic .NET (2002)
- Microsoft Access 2002
- Microsoft Excel 2002
- Microsoft PowerPoint 2002
- Microsoft Word 2002
- Microsoft Office Access 2003
- Microsoft Office Excel 2003
- Microsoft Office PowerPoint 2003
- Microsoft Office Word 2003
This article was previously published under Q306682
For a Microsoft Visual C# .NET version of this article, see 306683.
For a Microsoft Visual C++ version of this article, see 306686.
SUMMARY
This step-by-step article describes how to call Office macros from a Visual Basic .NET Automation client.
You can use Microsoft Office Automation to open a document or create a new document that contains a Visual Basic for Applications (VBA) macro and execute the macro at run time.REFERENCES
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
303871
How to create an Excel macro by using Automation from Visual Basic .NET
177760 ACC97: How to run macros in other Office programs
For more information and resources about Office Automation, visit the following Microsoft Web sites:
Modification Type: | Major | Last Reviewed: | 5/25/2005 |
---|
Keywords: | kbAutomation kbhowto KB306682 kbAudDeveloper |
---|
|