VBA Rebuild Current Book

Post Reply
initm1
Posts: 32
Joined: Mon Jul 20, 2015 7:19 am
OLAP Product: Microsoft
Version: 10.2
Excel Version: OFFICE365

VBA Rebuild Current Book

Post by initm1 »

Hi, Please help me out here. I am using below VBA to Rebuild Current Book but doesnt seem to work.
I want to rebuild the whole workbook wherever I have activeform. Please advice
sub test1()
Application.Run "TM1RECALC"
end sub
TM1.Prespectives.Win7.Office365,Excel2016,Excel2010
Paul Segal
Community Contributor
Posts: 306
Joined: Mon May 12, 2008 8:11 am
OLAP Product: TM1
Version: TM1 11 and up
Excel Version: Too many to count

Re: VBA Rebuild Current Book

Post by Paul Segal »

Try Application.Run "TM1REFRESH" rather than "TM1RECALC". Also, the search box above is your friend.
Paul
initm1
Posts: 32
Joined: Mon Jul 20, 2015 7:19 am
OLAP Product: Microsoft
Version: 10.2
Excel Version: OFFICE365

Re: VBA Rebuild Current Book

Post by initm1 »

I tried this but still doesn't work. Not sure what I'm missing out. It works perfect if I use teh TM1 ribbon Rebuild current book.
TM1.Prespectives.Win7.Office365,Excel2016,Excel2010
User avatar
gtonkin
MVP
Posts: 1199
Joined: Thu May 06, 2010 3:03 pm
OLAP Product: TM1
Version: Latest and greatest
Excel Version: Office 365 64-bit
Location: JHB, South Africa
Contact:

Re: VBA Rebuild Current Book

Post by gtonkin »

Try

Code: Select all

application.run "TM1RebuildCurrentBook"
initm1
Posts: 32
Joined: Mon Jul 20, 2015 7:19 am
OLAP Product: Microsoft
Version: 10.2
Excel Version: OFFICE365

Re: VBA Rebuild Current Book

Post by initm1 »

this works thank you.
TM1.Prespectives.Win7.Office365,Excel2016,Excel2010
Post Reply