Change Cube-Name in Excel Sheets

Post Reply
rks1
Posts: 20
Joined: Tue Jul 24, 2012 9:20 am
OLAP Product: TM1
Version: 9.4.1
Excel Version: 2007

Change Cube-Name in Excel Sheets

Post by rks1 »

Hi Community!

We have been moving our files to another server with another name (for tests at the moment). Included are more than 100 Excel-Sheets.
Each has several thousand formulas referencing the cube in a DBRW formula (=DBRW(server:cube,....).
Is there a way to avoid opening each file and replace each formula manually (or by clicking strg+F)? If not, maybe there's a solution to implement in the future by another reference saved in a config on the server or a config excel sheet?

Thank you very much for your help and best regards,
Konstantin
Paul Segal
Community Contributor
Posts: 312
Joined: Mon May 12, 2008 8:11 am
OLAP Product: TM1
Version: TM1 11 and up
Excel Version: Too many to count

Re: Change Cube-Name in Excel Sheets

Post by Paul Segal »

Paul
lotsaram
MVP
Posts: 3704
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Change Cube-Name in Excel Sheets

Post by lotsaram »

Or you could use this.
TM1_Reference_Updater.xlsm
(35.4 KiB) Downloaded 503 times
Will also change references to servers in action buttons and very useful if changing cube, dimension or element names for whatever reason. (Note that the code assumes worksheets are not protected.)

However if it is just a case of server migration in a DQP setup I believe this technique is the best option as it avoids any need for find/replace whether automated or not.
rks1
Posts: 20
Joined: Tue Jul 24, 2012 9:20 am
OLAP Product: TM1
Version: 9.4.1
Excel Version: 2007

[SOLVED]Re: Change Cube-Name in Excel Sheets

Post by rks1 »

lotsaram, that's a wonderfool little tool.
Paul, thank you, too :)

Solved!
Post Reply