Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'd like to verify a cell is within a range of rows prior to allowing the
macro to delete the row. It's easy enough I know if the range of rows is constant; but if you're deleting the rows within the range - then the range is shrinking and using constants (as in my example below) probably won't work. Any ideas? If ActiveCell.Row 6 AND ActiveCell.Row <30 Then ActiveCell.Row.Delete Else MsgBox "Nope - can't delete the row." End If |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
use active cell to determine range | Excel Discussion (Misc queries) | |||
Clearly seeing active cell in a range | Excel Discussion (Misc queries) | |||
Verify Active Cell | Excel Programming | |||
Active cell is within a specific range | Excel Programming | |||
How to verify a cell is in a named range | Excel Programming |