Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Code for Deleting all but first row
I have a large data file that changes daily. I have a header row and am using
a filter to copy certain data including the header row to a new worksheet. I want to then go back and delete all the data that was displayed by the filter except for the Header row. Does anyone know the code that can do this?? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Code for Deleting all but first row
range(Range("B1"), cells(rows.count,
columns.count)).specialcells(xlCellTypeVisible).en tirerow.delete -- HTH... Jim Thomlinson "Scott" wrote: I have a large data file that changes daily. I have a header row and am using a filter to copy certain data including the header row to a new worksheet. I want to then go back and delete all the data that was displayed by the filter except for the Header row. Does anyone know the code that can do this?? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Code for Deleting all but first row
Thanks Jim. That works great!!
"Jim Thomlinson" wrote: range(Range("B1"), cells(rows.count, columns.count)).specialcells(xlCellTypeVisible).en tirerow.delete -- HTH... Jim Thomlinson "Scott" wrote: I have a large data file that changes daily. I have a header row and am using a filter to copy certain data including the header row to a new worksheet. I want to then go back and delete all the data that was displayed by the filter except for the Header row. Does anyone know the code that can do this?? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Deleting row using vb code? | Excel Discussion (Misc queries) | |||
VBA Code for Deleting a Row | Excel Worksheet Functions | |||
Deleting Code from VBA | Excel Discussion (Misc queries) | |||
Another code for deleting row | Excel Programming | |||
Deleting code in a file with code.. | Excel Programming |