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     [SOLVED]Multiple Excel Report - with table of contents links

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Multiple Excel Report - with table of contents links
 Login/Join
 
Guru
posted
I am creating a excel spreadsheet with multiple reports. I am using EXL2K OPEN FOR THE FIRST REPORT AND EXL2K CLOSE for the last report. The first report lists out the pages that will be used as a table of contents.. How do I add links to the table of contents to link to the desired report?

This message has been edited. Last edited by: Jay Potter,


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report This Post
Virtuoso
posted Hide Post
Look at this post from Ablebits :
Excel: How to add a hyperlink to another sheet

Then, using code similar to below you can create your link to put in sheet 1
TABLE FILE CAR
PRINT COMPUTE LNK /A100V= '=HYPERLINK("#''' || COUNTRY || '''!A1", "Go To ' | LCWORD(10, COUNTRY, 'A10') || '")'; AS 'Table Of Content'
BY COUNTRY NOPRINT
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K OPEN
ON TABLE SET STYLE *
     INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
TYPE=REPORT,
     TITLETEXT='Table Of Content',
$
ENDSTYLE
END
-RUN

TABLE FILE CAR
PRINT MODEL AS 'Model'
BY COUNTRY  AS 'Country'
BY CAR      AS 'Car'
ON TABLE SET COMPOUND BYTOC
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K CLOSE
ON TABLE SET STYLE *
     INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
ENDSTYLE
END
-RUN

The only issue with that is that the HYPERLINK references are displayed as text in Excel so you need to edit and press Enter to "activate" the function. Maybe with a macro it can be solved to have it as a real function and not a text.

I also remember that it was previously discussed in another post in this Forum.
You can also refer to this discussion :
[SOLVED] Creating a Hyperlink that References Another Tab from within an Excel Workbk

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


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Guru
posted Hide Post
Thank you. It works perfectly!


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report 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     [SOLVED]Multiple Excel Report - with table of contents links

Copyright © 1996-2020 Information Builders