Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default How to apply changes to many WBs in one go?

Hi,

I have 11 WBs structured exactly the same way.
Every WB contains 30 WSs, the WSs Tab names are the same for every WB.
I need to change some tab names, which means that I have to reflect all the
changes to the formulas, macros etc.
If I do all of this in one WB, what could be the best way to apply the same
changes to all the other 10 WBs?
Basically, if I change some of the tab names in one WB and fit the formuals
and the macros accordingly, then I will need to do the same job in the other
10 WBs.
I'm asking if there's a short way to this, like for instance a batch process
or so.

Thank you for your help.

Alex

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to apply changes to many WBs in one go?

If you change a tab name, the formulas should adjust automatically - the
formulas in that workbook that refer to that worksheet.

If other workbooks have formulas that refer to that worksheet, then if they
are open at the time of the change, the formulas in them should adjust as
well.

So it sounds like you just need a macro that loops through your 11 WB's and
renames the tab.

Sub ChangeTab
Dim i as long, varr as Variant
Dim bk as Workbook
vARR = Array("book1.xls", _
"book2.xls", _
. . . , _
"book11.xls")

for i = lbound(varr) to ubound(varr)
set bk = workbooks.open(filename:="C:\MyFolder\" & varr(i))
bk.Worksheets("BadName").Name = "GoodName"
bk.Close SaveChanges:=True
Next
End Sub

--
Regards,
Tom Ogilvy

"Metallo" wrote in message
...
Hi,

I have 11 WBs structured exactly the same way.
Every WB contains 30 WSs, the WSs Tab names are the same for every WB.
I need to change some tab names, which means that I have to reflect all

the
changes to the formulas, macros etc.
If I do all of this in one WB, what could be the best way to apply the

same
changes to all the other 10 WBs?
Basically, if I change some of the tab names in one WB and fit the

formuals
and the macros accordingly, then I will need to do the same job in the

other
10 WBs.
I'm asking if there's a short way to this, like for instance a batch

process
or so.

Thank you for your help.

Alex



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How many conditions can I apply to a cell? I need to apply 8. Markus Excel Discussion (Misc queries) 2 July 10th 08 01:06 PM
apply changes to all sheets Mark Excel Worksheet Functions 2 October 16th 05 08:17 AM
Apply all autofilters malcomio Excel Discussion (Misc queries) 1 July 29th 05 02:34 PM
How can I apply this calculation Rory Excel Discussion (Misc queries) 4 July 26th 05 07:21 PM
Apply to next X cells to the right... BeSmart Excel Worksheet Functions 1 April 24th 05 03:35 PM


All times are GMT +1. The time now is 06:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"