Excel built-in function

mlai08

Registered User.
Local time
Today, 12:27
Joined
Dec 20, 2007
Messages
110
Hi,

I tried to use the Excel function ISNUMBER in marco coding but got a compile error: sub or function not defined.

e.g.

If IsNumber(ActiveCell.Value) Then
do something
else
do othertning
end if

Does anyone know why this built-in function works in the spreadsheet but not in the marco codes? :confused:

Thanks
 
I think you need to use

If WorksheetFunction.IsNumber(ActiveCell.Value) Then...

instead.
 
Boblarson,

Thanks for enlightening me. I know it should not be something complicated.
 

Users who are viewing this thread

Back
Top Bottom