![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Location: England
Posts: 26
|
Hello all.
I've recorded a macro to delete empty rows on the first worksheet in a workbook containg 10 sheets. However what I want the macro to do is go to the next sheet, perform the macro operation and then move to the next sheet until all are done. Unfortunately i don't know waht code to append to the end of the macro to tell it to do this. CAn anyone help? Regards Lee |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
No Problemo
Dim ws as Worksheet For Each ws in WorkSheets ws.activate Call Your macro here Next Will loop through every worksheet in your workbook. Tom |
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Location: England
Posts: 26
|
Wahey!!
Thanks a bunch TsTom, works a treat. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|