Hi All,
Looking for some code to clear cells which are not highlighted
i.e. clear everything from row 2 downwards (Columns I:P) but exclude cells which are highlighted (not conditional formatting)
Thanks
Hi All,
Looking for some code to clear cells which are not highlighted
i.e. clear everything from row 2 downwards (Columns I:P) but exclude cells which are highlighted (not conditional formatting)
Thanks
Last edited by Gti182; 05-15-2014 at 08:49 AM.
How are the cells highlighted?
If posting code please use code tags, see here.
cells are highlighted by the user with the fill colour option
this works
![]()
Sub Macro1() Range("I2:P1000").Select For Each Cell In Selection If Cell.Interior.ColorIndex = xlNone Then Cell.ClearContents End If Next End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks