Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
anilsolipuram
 
Posts: n/a
Default Problem with search


I am not sure whether I understood your question.

If you saying that you are getting error when length of contents in the
cell is <1., you can use if criteria to see whether the length of the
cell content 1 and process your macro according to that.


=IF(LEN(D5)1,SEARCH("",D5,1),"")



In a macro, I´m trying to get the first word of every cell. I use the
function Search("",1). This works when there are several words in a
cell, but there is a runtime error when there is only one, since there
are no blanks in the cell. What could I do? Thanks!!


--
anilsolipuram
------------------------------------------------------------------------
anilsolipuram's Profile: http://www.excelforum.com/member.php...o&userid=16271
View this thread: http://www.excelforum.com/showthread...hreadid=277029

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
Windows search in Excel with autofilter Dave Z Excel Discussion (Misc queries) 1 January 21st 05 08:44 PM
Row Autofit problem Excel 2003 Matthias Klaey Excel Discussion (Misc queries) 0 January 19th 05 06:33 PM
Q: search in string JIM.H. Excel Discussion (Misc queries) 5 January 5th 05 11:24 PM
Paper Tray selection Problem, Michael Hoffmann Excel Discussion (Misc queries) 4 December 3rd 04 10:08 PM
search & replace joe_may Excel Worksheet Functions 1 November 9th 04 12:16 AM


All times are GMT +1. The time now is 12:49 PM.

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

About Us

"It's about Microsoft Excel"