Re: Applying a macro to all worksheets

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Use something like With Worksheets(Activesheet)

this will work with any work***.

There is no worksheets(All) as all the worksheets is really the
workbook collection

DannyS wrote:
I have a macro that contains the line:

With Worksheets("UK")

Can I get it to apply to all my worksheets?

Ie

With Worksheets(All)

Thanks!

.


Quantcast