Excel macros and action buttons

Post Reply
Joffes
Posts: 8
Joined: Thu Aug 28, 2008 6:56 am
OLAP Product: Tm1
Version: 9.4.1
Excel Version: 2003 2007
Location: Johannesburg, South Africa
Contact:

Excel macros and action buttons

Post by Joffes »

Hi guys,

I need to add an amount of vb code to a cube slice, this code will run through command buttons, however these as we know are not supported in Tm1Web.
I am using Excel 2007 and 9.4.1 FP 2

My questions are:
Is there a way of running a macro through action buttons?
Is there another method of using these macros in web?
Can this be done using the API, if it is spreadsheet dependent?

Thanks in advance
Steve
David Usherwood
Site Admin
Posts: 1458
Joined: Wed May 28, 2008 9:09 am

Re: Excel macros and action buttons

Post by David Usherwood »

You can't run VBA in TM1Web because it's not running Excel (which hosts VBA).
But you can put VBA behind a normal Excel button or commandbar. This will work fine.
Action buttons were thought up as a (very) partial fix to running code in both TM1 and TM1Web. My take is that for full service apps Excel is better (delivered by Citrix if necessary).
lotsaram
MVP
Posts: 3703
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Excel macros and action buttons

Post by lotsaram »

It might help to give some explanation as to what your VBA code is doing and what you need it for.

As noted here already (and many other places on this forum) VBA macros are not supported in TM1 Web but maybe you don't need macros to do what you are wanting to do. There are plenty of options that don't require VBA that might do the same thing such as running a TI process, navigating to another report, drilling through to another report or transactional data, filtering or sorting a report. If you give some more information on what it is you are wanting to do you might get some more useful tips on how to do it.
Joffes
Posts: 8
Joined: Thu Aug 28, 2008 6:56 am
OLAP Product: Tm1
Version: 9.4.1
Excel Version: 2003 2007
Location: Johannesburg, South Africa
Contact:

Re: Excel macros and action buttons

Post by Joffes »

Thanks guys,

I understand VBA is not supported and why it will not work on web.
I am just trying to see if there is some type of workaround using action buttons.
My client has many excel reports and input templates where we use excel buttons and vba to add and remove lines in the sheet and limit what the users can do, I would like to keep that functionality when they go live on Web, if its possible.

Cheers
Steve
Post Reply