Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I thought the following should work, BUT IT DOESN'T.
Can somone "point-out" WHY it doesn't? - TIA, Sub Foo() With Selection ' Range currently highlighted - example A3:A50 For Each cell In Selection If .Interior.ColorIndex = 6 Then cell.EntireRow.Delete End If Next cell End With End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VB Code Is Not Working | Excel Discussion (Misc queries) | |||
Code not working | Excel Programming | |||
Code not working and can't see why | Excel Discussion (Misc queries) | |||
why this code not working | Excel Programming | |||
For Each Code Not Working | Excel Programming |