Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
art art is offline
external usenet poster
 
Posts: 22
Default Testing for text

How can I check the cell contents to identify whether the
value is text or not?

I thought I could get there with the IsNumeric function:
IsNumeric(ActiveCell) returns:

A blank cell is true.
A number is true.
Text is false.

So far so good, BUT ...

A date (like 3/15/2003) is FALSE! That doesn't work for me.

Art
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Testing for text

Hi Art
you may try
If IsNumeric(Activecell.value) or IsDate(Activecell.value) then
msgbox "no text"
end if

--
Regards
Frank Kabel
Frankfurt, Germany

Art wrote:
How can I check the cell contents to identify whether the
value is text or not?

I thought I could get there with the IsNumeric function:
IsNumeric(ActiveCell) returns:

A blank cell is true.
A number is true.
Text is false.

So far so good, BUT ...

A date (like 3/15/2003) is FALSE! That doesn't work for me.

Art

  #3   Report Post  
Posted to microsoft.public.excel.programming
art art is offline
external usenet poster
 
Posts: 22
Default Thanks Frank. (eom)


-----Original Message-----
Hi Art
you may try
If IsNumeric(Activecell.value) or IsDate

(Activecell.value) then
msgbox "no text"
end if

--
Regards
Frank Kabel
Frankfurt, Germany

Art wrote:
How can I check the cell contents to identify whether

the
value is text or not?

I thought I could get there with the IsNumeric function:
IsNumeric(ActiveCell) returns:

A blank cell is true.
A number is true.
Text is false.

So far so good, BUT ...

A date (like 3/15/2003) is FALSE! That doesn't work for

me.

Art

.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Testing Rick Rothstein Excel Discussion (Misc queries) 13 December 29th 09 10:45 PM
User form - Testing for numbers or text NDBC Excel Discussion (Misc queries) 5 July 1st 09 06:59 AM
Testing Jay T. Emory[_2_] Excel Discussion (Misc queries) 0 February 18th 09 08:55 PM
TESTING Eamon Excel Worksheet Functions 0 July 11th 08 03:41 PM
testing Mitchina New Users to Excel 2 June 21st 05 04:35 PM


All times are GMT +1. The time now is 06:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"