Windows XP apply macros to multiple worksheets

Joined
Jan 6, 2010
Messages
1
Reaction score
0
hi
i am trying to apply a macro that i recorded to all worksheets within a workbook. here it, how do i go about, i have seen other posts and just can't seem to get it to work.
any help appreciated.

Sub format()
'
' format Macro
'
'
Rows("1:2").Select
Range("K1").Activate
ActiveWindow.SmallScroll Down:=21
ActiveWindow.LargeScroll Down:=-1
Selection.Delete Shift:=xlUp
Columns("E:E").ColumnWidth = 10.43
Columns("E:E").Select
Selection.Delete Shift:=xlToLeft
Columns("G:G").ColumnWidth = 7.57
Columns("G:G").Select
Selection.Delete Shift:=xlToLeft
Columns("J:J").ColumnWidth = 11.86
Columns("J:J").Select
Selection.Delete Shift:=xlToLeft
Columns("K:K").ColumnWidth = 7.29
Columns("K:K").Select
Selection.Delete Shift:=xlToLeft
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top