The TEXT function in Excel 2000 VBA

T

Tory Zimmerman

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.
 
R

Ron Rosenfeld

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top