Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to find cell?

hi, please help me on this...

I want to find a cell that has a text on it regardless of how it was
written.

the text is: 0 - 30 days and i need to replace it with 30

i went and did a find and replace. However, i tried to find it under:
0-30 days..but it didn't find anything because i am missing the spaces.
(if I do 0 - 30 days, it finds it).

How should I find it no matter how many spaces in between?



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default how to find cell?

From code: (watch word wrap)

Cells.Find(What:="0*-*30*days", After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False).Activate

from the spread sheet
0*-*30*days

Love those wild cards...
--
sb
"projectside" wrote in message
...
hi, please help me on this...

I want to find a cell that has a text on it regardless of how it was
written.

the text is: 0 - 30 days and i need to replace it with 30

i went and did a find and replace. However, i tried to find it under:
0-30 days..but it didn't find anything because i am missing the spaces.
(if I do 0 - 30 days, it finds it).

How should I find it no matter how many spaces in between?



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



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
Find & Replace: find part cell, replace whole cell katy Excel Worksheet Functions 3 April 3rd 23 01:20 PM
find last cell in range with data, display cell address sevi61 Excel Worksheet Functions 14 October 29th 07 08:36 PM
FIND / SEARCH text compare cell to string in 3rd cell nastech Excel Discussion (Misc queries) 0 October 29th 07 02:51 AM
find first empty cell in column and start transpose next row in that cell ali Excel Discussion (Misc queries) 6 July 21st 07 11:55 PM
Find First Non blank cell than find column header and return that value Silver Rose Excel Worksheet Functions 10 April 30th 07 05:56 PM


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