rover317 -
When you use Application.WorkSheetFunction.Text(value,format_text) in VBA,
you are using Excel's TEXT() worksheet function.
The Excel Text() worksheet function is identical to using
Application.WorkSheetFunction.Text() in VBA.
As JE McGimpsey said, the Text() worksheet function and the VBA Format()
function are similar; they are not identical; the VBA Format() function has
more features.
Here's part of the Help for the Text() worksheet function:
+++++++++++++++++
TEXT
Converts a value to text in a specific number format.
Syntax
TEXT(value,format_text)
Value is a numeric value, a formula that evaluates to a numeric value, or
a reference to a cell containing a numeric value.
Format_text is a number format in text form from in the Category box on
the Number tab in the Format Cells dialog box.
+++++++++++++++++
To see some of the possible number formats for the second argument, select a
cell, and choose Format | Cells | Number | Custom.
For example, in a worksheet cell, =TEXT(3.3333,"0.0") returns 3.3.
For more details and examples, search for "guidelines for custom number
formats" in Excel's Help (not in VBA Help).
- Mike
www.mikemiddleton.com
rover317 wrote: > The Text() function is different from the
Application.WorkSheetFunction.Text,so is function format(). <
JE McGimpsey wrote: > See the TEXT() function in XL Help. It's very similar
to the VBA function Format() <
rover317 wrote: > I want to know how to use the
Application.WorkSheetFunction.Text function,especially the second argument
it uses. <