WorkSheetFunction.Text() Method

M

Mili

Hi,
Is it possible for any one to explain the other
methods available with Cells(row,col), and where I can
find them in MSDN.
I am using the following Code.
**********************************************************
CellValue = Application.WorksheetFunction.Text(Cells
(RowNdx, ColNdx).Value, Cells(RowNdx,
ColNdx).NumberFormat)
**********************************************************

Thanks

Mili.
 
D

Dave Peterson

Try taking a look at Range in VBA's help. You'll see the methods and properties
listed there.

And just for your example, you could use:

CellValue = cells(rowndx,colndx).text

or you could use VBA's Format function:

CellValue = Format(Cells(rowNdx, colNdx).Value, _
Cells(rowNdx, colNdx).NumberFormat)
 

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