Using a Worksheet Function in a Visual Basic Macro (161120)
The information in this article applies to:
- Microsoft Excel 97 for Windows
- Microsoft Excel for Windows 95
- Microsoft Excel for Windows 5.0
- Microsoft Excel 98 Macintosh Edition
This article was previously published under Q161120 For a Microsoft Excel 2002 version of this article, see 291309.
For a Microsoft Excel 2000 version of this article, see 213765.
SUMMARY
You can call a built-in Microsoft Excel worksheet function directly from a
Microsoft Visual Basic for Applications macro. This article describes how
to use a built-in worksheet function in a macro.
REFERENCES
For additional information about the worksheet functions that are not
supported with the Application or WorksheetFunction objects, please see the
following article in the Microsoft Knowledge Base:
107564
XL: Not All Worksheet Functions Supported as Application
Microsoft Excel 97
For more information about using Microsoft Excel Worksheet Functions in
Visual Basic, click the Office Assistant in the Visual Basic Editor, type
using built-in functions in a macro, click Search, and then click to view
"Using Microsoft Excel Worksheet Functions in Visual Basic."
Microsoft Excel 7.0
For a complete list of the worksheet functions that you can call with the
Application object, type the following text
worksheet functions, using
and then double-click the selected text to go to the "List of Worksheet
Functions Available to Visual Basic" topic.
Microsoft Excel 5.0
For a complete list of the worksheet functions that can be called with the
Application object, choose the Search button in Visual Basic Help, and
type:
Choose the Show Topics button, select the topic "Using Worksheet Functions
in Visual Basic", and choose Go To.
Modification Type: | Minor | Last Reviewed: | 8/17/2005 |
---|
Keywords: | kbdtacode kbhowto kbProgramming KB161120 |
---|
|