Solved

Excel VBA Syntax - ISNUMERIC versus ISTEXT oddity?

Posted on 2013-12-09
1
1,738 Views
Last Modified: 2013-12-13
Why do I need to prefix the test with "application." for "istext" but I don't need to add "application." for "isnumeric"?


If Application.IsText(ActiveCell.Value) Then
        MsgBox "yes"
End If
------------------------------------------------------------
If IsNumeric(ActiveCell.Value) Then
    MsgBox "yes"
End If
0
Comment
Question by:brothertruffle880
1 Comment
 
LVL 49

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 39705794
Hi,

Because IsText is a WorksheetFunction and IsNumeric a VBA Function
EDIT
 IsNumeric  is Member of VBA.Information
and
IsText  is Member of Excel.WorksheetFunction

Therefore Application.isText


Regards
0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question