hi,
delete cell contents with certain words
I'm trying to make a macro that in a column clears the contents of all the cells that don't contain the word "presso".
example :
in G5 : presso
in G6 : pressoxxx
in G7 : xxxx presso xxxx
I tried using this macro but doesn't work
how can I solve the situation?
Thank you.
delete cell contents with certain words
I'm trying to make a macro that in a column clears the contents of all the cells that don't contain the word "presso".
example :
in G5 : presso
in G6 : pressoxxx
in G7 : xxxx presso xxxx
I tried using this macro but doesn't work
Code:
Sub Prova()
Dim cella As Range
For Each cella In [G5:G10000]
If cella.Value <> "*presso*" Then cella.ClearContents
Next cella
End Sub
how can I solve the situation?
Thank you.