Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've used the code below that was suggested to delete all of the old
data from a worksheet and hopefully reset the UsedRange back to just the height of the header row but when I check the UsedRange of the worksheet I still get 65536 as the used rows. Hence when I try to loop through my code it tries to test all 65536 Rows. IDEAS? Here is the code below. I only want to test the used range of the worksheet, I can't test for a blank row since many exist in the document. I just need the last row of data. First_Row = 3 Application.Worksheets("Work Sheet").Rows(First_Row).Resize(65536 - First_Row).EntireRow.Delete Debug.Print Application.Worksheets("Work Sheet").Rows.Count |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can change range to select active rows instead of :=Range("S10 | Excel Discussion (Misc queries) | |||
formula to sort a range so that it matches the exact rows of a column that is outside that range? | Excel Discussion (Misc queries) | |||
Range of even/odd rows | Excel Programming | |||
Rows in a Range | Excel Programming | |||
group rows in a range based on criteria from another range (vba) | Excel Programming |