F9 versus Application.Calculate

Post Reply
image2x
Posts: 125
Joined: Tue Jun 02, 2009 7:05 pm
OLAP Product: TM1, PAX, PAW, SPSS
Version: 2.0.916.10 on RHEL
Excel Version: 2016
Location: Minneapolis, MN

F9 versus Application.Calculate

Post by image2x »

I'm seeing a marked performance difference (10x) between a refresh perfomed with a manaul F9 keystroke compared with executing an Application.Calculate in VB. This is on a worksheet with ~20k dbrw statements. The F9 method is faster.

Does TM1 "intercept" F9 when entered manually and process differently? If so, can one call the TM1 refresh directly from VB?

Thanks,
-- John
Paul Segal
Community Contributor
Posts: 314
Joined: Mon May 12, 2008 8:11 am
OLAP Product: TM1
Version: TM1 11 and up
Excel Version: Too many to count

Re: F9 versus Application.Calculate

Post by Paul Segal »

Yes. Record a macro with F9 as the only keystroke, and you will see the code TM1 uses in the recorded macro. It does differ by version.

Regards
Paul
afshin
Posts: 29
Joined: Sun Sep 05, 2010 2:45 am
OLAP Product: TM1
Version: 9.5
Excel Version: 2003

Re: F9 versus Application.Calculate

Post by afshin »

Yes TM1 will interpret F9 when entered manually you could also use the SendKeys "{F9}" .
Post Reply