![]() |
Running a macro on multiple tabs
Hi
I have put together a macro that formats my data but i need help with the code that makes it cycle through the tabs and applies it to each tab. is that a loop function or a sheetoffset or what. Many thank |
Running a macro on multiple tabs
Hi Kevin,
It is a loop For Each sh In ActiveWorkbook.Worksheets ' do your thing ' qualify objects with sh. ; e.g. If sh.Range("A1") = "Hello" Next sh -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "kevin" wrote in message ... Hi, I have put together a macro that formats my data but i need help with the code that makes it cycle through the tabs and applies it to each tab. is that a loop function or a sheetoffset or what. Many thanks |
All times are GMT +1. The time now is 02:04 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com