View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Myles[_31_] Myles[_31_] is offline
external usenet poster
 
Posts: 1
Default Repeating some code on all worksheets


Sub LoopThroWShts()
Dim sh WorkSheets

For each sh in WorkSheets
Your code
Next

End Sub

Remember to qualify your ranges with sh as in sh.Range("a10:e25") or
sh.Cells(10, "a") as the case may be.

Myles


--
Myles
------------------------------------------------------------------------
Myles's Profile: http://www.excelforum.com/member.php...o&userid=28746
View this thread: http://www.excelforum.com/showthread...hreadid=500576