Rebuilding Active Forms using VBA

Post Reply
eddoria
Posts: 22
Joined: Fri Aug 10, 2012 5:07 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: 2003 and 2010

Rebuilding Active Forms using VBA

Post by eddoria »

I need to create a macro which selects a sheet and rebuilds the active form. Is this possible using VBA? We are using Excel 2003 and TM1 9.5.2

Any help with this would be greatly appreciated.

Thanks and regards

Vera Hawkins
BigG
Community Contributor
Posts: 211
Joined: Tue Sep 15, 2009 11:13 pm
OLAP Product: IBMPA
Version: PA 2.0 Cloud
Excel Version: 2010

Re: Rebuilding Active Forms using VBA

Post by BigG »

I think you are after

ActiveSheet.Select
Application.Run "TM1RECALC1"

but if you search the forum you may find some better examples
GG
lotsaram
MVP
Posts: 3706
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Rebuilding Active Forms using VBA

Post by lotsaram »

BigG wrote:I think you are after

ActiveSheet.Select
Application.Run "TM1RECALC1"

but if you search the forum you may find some better examples
In fact you would be needing Application.Run "TM1REFRESH" which is the macro to rebuild an active form. TM1RECALC1 recalculates the sheet but it will not trigger rebuilding of the rows of an active form.
Post Reply