View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
PMC1 PMC1 is offline
external usenet poster
 
Posts: 23
Default Applying a macro to all worksheets

Use something like With Worksheets(Activesheet)

this will work with any worksheet.

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!