0
votes

I have an excel workbook with many different sheets. Each sheet has a single macro in it wich saves the sheet as a pdf and opens outlook with that pdf as an attachment. I am looking for a function to place on one worksheet that will run each macro without having to manually run each on their respective worksheets.

1
For/Each loop. Show us your function, please?David Zemens

1 Answers

0
votes

Say there is a macro in each worksheet called SheetMac. Put the following in a standard module and run it:

Sub MASTER()
For Each sh In Sheets
    sh.Activate
    Call sh.SheetMac
Next sh
End Sub