I am needing to create a macro that runs the following code accross all the sheets in a workbook. The number of sheets changes from workbook to workbook and one the macro's creates a chart so I need the macro to run in one sheet then move to the next so forth and so on. Any help would be greatly appreciated.
Sub AMaster()
'
' AMaster Macro
'
'
Application.Run "PERSONAL.XLSB!na_to_0"
Application.Run "PERSONAL.XLSB!label2"
Application.Run "PERSONAL.XLSB!Calc3"
Application.Run "PERSONAL.XLSB!Fudge3"
Application.Run "PERSONAL.XLSB!Fudge4"
Application.Run "PERSONAL.XLSB!Fudge5"
Application.Run "PERSONAL.XLSB!table"
Application.Run "PERSONAL.XLSB!table2"
Application.Run "PERSONAL.XLSB!table3"
Application.Run "PERSONAL.XLSB!Chart"
Application.Run "PERSONAL.XLSB!label"
Application.Run "PERSONAL.XLSB!Format"
Application.Run "PERSONAL.XLSB!PrintArea"
End Sub
Sub AMaster()
'
' AMaster Macro
'
'
Application.Run "PERSONAL.XLSB!na_to_0"
Application.Run "PERSONAL.XLSB!label2"
Application.Run "PERSONAL.XLSB!Calc3"
Application.Run "PERSONAL.XLSB!Fudge3"
Application.Run "PERSONAL.XLSB!Fudge4"
Application.Run "PERSONAL.XLSB!Fudge5"
Application.Run "PERSONAL.XLSB!table"
Application.Run "PERSONAL.XLSB!table2"
Application.Run "PERSONAL.XLSB!table3"
Application.Run "PERSONAL.XLSB!Chart"
Application.Run "PERSONAL.XLSB!label"
Application.Run "PERSONAL.XLSB!Format"
Application.Run "PERSONAL.XLSB!PrintArea"
End Sub