Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I am trying to create a macro to delete the line above my totals line (which is the last line in the sheet). I am using the following macro to delete a line but am not sure how to modify it. Any advice is appreciated. ------ Sub DeleteLine() Dim last_row As Long ActiveSheet.UsedRange last_row = Cells.SpecialCells(xlLastCell).Row Range("A" & last_row).Select Selection.EntireRow.Delete End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
delete macro | Excel Discussion (Misc queries) | |||
delete a macro that isn't in macro list | Excel Discussion (Misc queries) | |||
How can I delete a macro when the Delete button is not active? | Excel Worksheet Functions | |||
How do i delete a macro in Excel 2003 when delete isn't highlight | Excel Discussion (Misc queries) | |||
Delete a whole row using a macro | Excel Discussion (Misc queries) |