Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro for changing tabs
First you need to count the number of sheets you have, then
Starting at the last, increment it first. Something like: NumberSheets = Sheets.Count Sheets.Add For X = NumberSheets to 1 Step -1 Sheets(x).Select Sheets(x).Name = "Week" & X Next X If you change Week1 to 2 before 2 is changed you will have conflict. Alan *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Chart tabs changing by themself | Charts and Charting in Excel | |||
Run Macro when changing tabs | Excel Discussion (Misc queries) | |||
Changing Tabs to Specific Cells | Excel Discussion (Misc queries) | |||
Changing colors of tabs | Excel Discussion (Misc queries) | |||
Macro for changing tabs | Excel Programming |