Assign Macro to Action Button.

Post Reply
sg2012
Posts: 27
Joined: Tue Jan 10, 2012 9:13 am
OLAP Product: Tm1 Cognos
Version: 9.5.2
Excel Version: 2007

Assign Macro to Action Button.

Post by sg2012 »

Hi All

I have a Scenario:
In Tm1 Perspectives I have 2 Action Buttons.
When I click on Action Button,TIs run.
When I click the Button, I want the Start Timestamp to be recorded in the next cell.
I wrote Macros for recording Timestamp.
But when I run MAcro for 2nd Action Button,all the Macros get refreshed.

I wrote following Code in VBA.

Private Sub TIButton1_Click()
Application.Run "Macro_Time"
End Sub

where TIButton1 is the name of Action Button.
and Macro_Time is the name of Macro.
kpk
MVP
Posts: 214
Joined: Tue Nov 11, 2008 11:57 pm
OLAP Product: TM1, CX
Version: TM1 7x 8x 9x 10x CX 9.5 10.1
Excel Version: XP 2003 2007 2010
Location: Hungary

Re: Assign Macro to Action Button.

Post by kpk »

Why do you need the macro and macro button for that?
Instead of writing the timestamp into an Excel cell I suggest to write it in a TM1 cube.
Best Regards,
Peter
Post Reply