ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   The TEXT function in Excel 2000 VBA (https://www.excelbanter.com/excel-programming/311656-text-function-excel-2000-vba.html)

Tory Zimmerman[_2_]

The TEXT function in Excel 2000 VBA
 
When using the TEXT function in EXCEL 2000 VBA I get the
following error:

Compile Error: Sub or Function not found.

The TEXT fuction is in the list of VBA functions under
the Help. I have tried using the example and still get
the same error.

To get the list of functions do the following.

Go to help. Type in Functions. This should bring up the
alphabetical list. Go to the TEXT function and read the
instructions.

Ron Rosenfeld

The TEXT function in Excel 2000 VBA
 
On Mon, 27 Sep 2004 21:00:45 -0700, "Tory Zimmerman"
wrote:

When using the TEXT function in EXCEL 2000 VBA I get the
following error:

Compile Error: Sub or Function not found.

The TEXT fuction is in the list of VBA functions under
the Help. I have tried using the example and still get
the same error.

To get the list of functions do the following.

Go to help. Type in Functions. This should bring up the
alphabetical list. Go to the TEXT function and read the
instructions.


I don't see it if I do that in XL 2002.

In VBA, Text is a PROPERTY that refers to multiple objects.

TEXT is a worksheet function in Excel, so if you want to use it as a function
in VBA, try:

Application.WorksheetFunction.Text(...

or look at the Format function in VBA.


--ron


All times are GMT +1. The time now is 01:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com