Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Excel VBA Syntax - ISNUMERIC versus ISTEXT oddity?

Posted on 2013-12-09
1
Medium Priority
?
2,173 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 53

Accepted Solution

by:
Rgonzo1971 earned 2000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

670 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