Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Execute a macro in an Exl2k template - solved

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Execute a macro in an Exl2k template - solved
 Login/Join
 
Master
posted
We have a program that creates a report in an Excel Template. There is a macro in the template to hide the formulas and supporting reports and just leave the template report. Is there a way to automatically execute the macro from WebFOCUS when the template loads or from Excel when the document is opened?

This message has been edited. Last edited by: PBrightwell,


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
Hi Pat,

To do this I use a post process to run workbook_open.

I wrote an article recently on being able to still use Excel 2007 templates where the macros are removed on saving by MS. The article uses VB Scripting on the server to achieve the goal but I know that you use a few different O/S? It might give you food for thought?

You can find the article in the developer centre - link

Good luck

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Silver Member
posted Hide Post
Yes there is!

In the template, copy/create the desired VB script into a module with a specific name: auto_open.

When WebFOCUS populates the template, and before the output is displayed in the user's browser, the script will have already run. This works for MS Excel 2000 and 2002 and possibly higher.

Marcia


WebFOCUS 7.73
Windows, Unix, AS/400 (iSeries)
HTML, PDF, MS Excel (including templates), HTML Active Reports
 
Posts: 32 | Registered: October 01, 2010Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Execute a macro in an Exl2k template - solved

Copyright © 1996-2020 Information Builders