ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how to find cell? (https://www.excelbanter.com/excel-programming/279917-how-find-cell.html)

projectside[_4_]

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/


steve

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/





All times are GMT +1. The time now is 05:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com