How to call Microsoft Excel macros that take parameters (153307)
The information in this article applies to:
- Microsoft Excel 2000
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic for Applications 5.0
- Microsoft Excel 2002
- Microsoft Excel 97 for Windows
This article was previously published under Q153307 SUMMARY Using Automation, you can manipulate Microsoft Excel. It is
possible to call macro procedures that are stored in Microsoft Excel Workbooks
by using the Run method of the Microsoft Excel Application object. Microsoft
Excel macro procedures that take parameters cause a slight change in the
syntax. Included below is a code sample showing how to call a Microsoft Excel
macro procedure from Visual Basic. REFERENCES For more information about using Visual Basic to Automate
Excel, see the following:
219151 How To Automate Microsoft Excel from Visual Basic
Modification Type: | Minor | Last Reviewed: | 7/21/2006 |
---|
Keywords: | kbProgramming kbAutomation kbhowto kbinterop KB153307 |
---|
|