Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 208
Default IsText VBA Error

Hello. I'm using Excel XP. I don't know what's causing the error message
for following code:

If Application.IsText(ActiveCell.Value) Then
sText = ActiveCell.Value
Else
sNonText = ActiveCell.Value
EndIf

I get an "Object Required" error message. Any thoughts?? I've tried the
following as well:

If Application.IsText(ActiveCell.Value) = True then
....etc

I don't get it. This code is all over the web as an example of how to use
"IsText" in VBA. Do I need a special DIM statement, or reference??

Thanks.

--
Craig
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default IsText VBA Error

Craig,
I would have said that you are missing the "WorksheetFunction" between
"Application" and "IsText" (as IsText is part of Excel, not VBA), but
Application.IsText works.
You sure the error is occurring on that line ?

NickHK

"Craig" wrote in message
...
Hello. I'm using Excel XP. I don't know what's causing the error message
for following code:

If Application.IsText(ActiveCell.Value) Then
sText = ActiveCell.Value
Else
sNonText = ActiveCell.Value
EndIf

I get an "Object Required" error message. Any thoughts?? I've tried the
following as well:

If Application.IsText(ActiveCell.Value) = True then
...etc

I don't get it. This code is all over the web as an example of how to use
"IsText" in VBA. Do I need a special DIM statement, or reference??

Thanks.

--
Craig



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 208
Default IsText VBA Error

Yes...and I don't understand why it's happening. I even tried your
"Worksheetfunction" example, and it doesn't work.
--
Craig


"NickHK" wrote:

Craig,
I would have said that you are missing the "WorksheetFunction" between
"Application" and "IsText" (as IsText is part of Excel, not VBA), but
Application.IsText works.
You sure the error is occurring on that line ?

NickHK

"Craig" wrote in message
...
Hello. I'm using Excel XP. I don't know what's causing the error message
for following code:

If Application.IsText(ActiveCell.Value) Then
sText = ActiveCell.Value
Else
sNonText = ActiveCell.Value
EndIf

I get an "Object Required" error message. Any thoughts?? I've tried the
following as well:

If Application.IsText(ActiveCell.Value) = True then
...etc

I don't get it. This code is all over the web as an example of how to use
"IsText" in VBA. Do I need a special DIM statement, or reference??

Thanks.

--
Craig




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
If + ISTEXT + SEARCH mldancing Excel Discussion (Misc queries) 4 May 11th 23 03:46 AM
How do I use istext with a sum formula? Jamie Thompson New Users to Excel 3 December 8th 08 09:46 PM
Sumproduct and ISTEXT? Sandy Excel Worksheet Functions 4 October 27th 08 04:42 AM
IF-ISTEXT formula Cardian Excel Discussion (Misc queries) 6 August 6th 07 04:52 PM
ISTEXT Micayla Bergen Excel Discussion (Misc queries) 1 May 19th 05 02:13 AM


All times are GMT +1. The time now is 10:03 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"