Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need help to design an excel 97 macro that will delete
the currently selected row and a hidden one immediately under it in their entirety. Any help is appreciated |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try this
ActiveCell.Resize(2, 1).EntireRow.Delete -- Don Guillett SalesAid Software "RKettle" wrote in message ... I need help to design an excel 97 macro that will delete the currently selected row and a hidden one immediately under it in their entirety. Any help is appreciated |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub testit()
Dim rng As Range With ActiveCell.EntireRow Set rng = Range(.Cells, .Offset(1, 0)) End With rng.Delete xlUp End Sub Rob "RKettle" wrote in message ... I need help to design an excel 97 macro that will delete the currently selected row and a hidden one immediately under it in their entirety. Any help is appreciated |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ignore my code, use Don's. Resize is certainly the way to go.
"Rob van Gelder" wrote in message ... Sub testit() Dim rng As Range With ActiveCell.EntireRow Set rng = Range(.Cells, .Offset(1, 0)) End With rng.Delete xlUp End Sub Rob "RKettle" wrote in message ... I need help to design an excel 97 macro that will delete the currently selected row and a hidden one immediately under it in their entirety. Any help is appreciated |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks all, I'll give it a try on Monday when I get back to the office.
Rob |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The resize code works great.
Thanks all Rob |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to delete rows if... | Excel Discussion (Misc queries) | |||
delete rows-macro | Excel Discussion (Misc queries) | |||
Creating a macro commad to shift selected rows to the right next c | Excel Discussion (Misc queries) | |||
delete columns and rows-cells equalling zero or any selected value | Excel Worksheet Functions | |||
Delete/Collapse Rows Not Selected | Excel Programming |