ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   sequential move across sheets (https://www.excelbanter.com/excel-programming/349251-sequential-move-across-sheets.html)

asante_za

sequential move across sheets
 
Could someone write a vb code or macros to auto activate sheets (tabs) one
after the other sequentially.
--
JA

Chip Pearson

sequential move across sheets
 
Presumably you want to do something with each sheet. Try
something like the following:


Dim SH As Worksheet
For Each SH In ThisWorkbook.Worksheets
SH.Activate
' do something with SH
Next SH


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com






"asante_za" wrote in message
...
Could someone write a vb code or macros to auto activate sheets
(tabs) one
after the other sequentially.
--
JA





All times are GMT +1. The time now is 07:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com