Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Loop thru woorksheets
I need to loop thru each worksheet in a workbook and clear the contents
except for the header row. Can anyone suggest a good way to do this in VBA? Thank You |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Loop thru woorksheets
option explicit
sub testme() dim wks as worksheet for each wks in activeworkbook.worksheets with wks .range("2:" & .rows.count).clearcontents end with next wks end sub Striker wrote: I need to loop thru each worksheet in a workbook and clear the contents except for the header row. Can anyone suggest a good way to do this in VBA? Thank You -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Copy and Paste to multiple woorksheets at one time | Excel Discussion (Misc queries) | |||
2 woorksheets 1 workbook, help with lookup | Excel Worksheet Functions | |||
Consolidate Woorksheets | Excel Worksheet Functions | |||
Advancing outer Loop Based on criteria of inner loop | Excel Programming | |||
Sharing woorksheets | Excel Worksheet Functions |