Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() "Raleigh" wrote: "Yngve" wrote: Hi Raleigh try this Sub a() With ActiveSheet Dim LastRow As Double 'countt columns A LastRow = Cells(Rows.Count, "A").End(xlUp).Row Rows("1:" & LastRow).Select End With End Sub Regards Yngve Thank you I am going to try it out right now. I am so sorry in the initial function there was an 'EntireRow.Delete' not an 'EntireRow.Select' so it would have looked like this.. With ActiveSheet LastRow = .UsedRange.Rows.Count ..Range(.Cells(FirstRow, 1), .Cells(LastRow, 1)).EntireRow.Delete End With Should I still just make and attempt with the code you gave me and just switch 'delete' with 'select'? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need Help with ActiveCell.EntireRow.Delete | Excel Discussion (Misc queries) | |||
Need Help with ActiveCell.EntireRow.Delete | Excel Discussion (Misc queries) | |||
delete entirerow if date more than 12months old | Excel Discussion (Misc queries) | |||
How to fix cell.entirerow.delete? | Excel Programming | |||
EntireRow.Delete | Excel Programming |