On 19 okt, 19:48, "Rick Rothstein"
<rick.newsNO.S...@NO.SPAMverizon.net> wrote:
> I'm pretty sure this single line of code will do what you want...
>
> Cells.Replace "*text*", "", xlPart, xlByColumns, False
>
> --
> Rick (MVP - Excel)
>
> "ppeer" <trafo0...@gmail.com> wrote in message
>
> news:4c112a88-70f5-491b-96e5-(E-Mail Removed)...
>
>
>
> > For a worksheet I would like to check the cells if they contain the
> > word "text".
> > Within a cell this word is always combined e.g.: text 06735
> > When the cell contains "text" I would like to clean the whole cell, so
> > text including e.g: 06735.
> > Result: a blank cell.
>
> > Please, can somebody help me out?- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -
thanks, this line of code gets the job done!
|