![]() |
![]() |
|
|||||||
| 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 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sydney, Australia
Posts: 2,908
|
You could put it in a loop like this:-
Code:
Sub DoItToAllSheets()
Dim sht As Worksheet
For Each sht In ThisWorkbook.Worksheets
'Do something to the sheet
sht.Cells.Columns.AutoFit
Next
End Sub
HTH, D |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Where the wild roses grow
Posts: 285
|
Sorry, I just wanted a macro that would run all the macro formulas in a workbook. They all format the info that's been pasted in each one to a presentable level It's OK though, I got it Thanks for your suggestion though |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|