View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Vanna Vanna is offline
external usenet poster
 
Posts: 9
Default Clear contents with condition

Hi everyone,

I'm a novice user in Excel Macros... still a lot more to be learn.
I need to write a code to clear cell contents under from column H if the
cell contains "("

I used:

Range = €œH:H€
For each cell in range
If substring of cell.value=")" then
cells.ClearContents
next

In advance, thank you for your help.