Focal Point
(CLOSED)Excel template with VLOOKUP on worksheet 1

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4947033476

January 16, 2015, 08:26 PM
mpbMDE
(CLOSED)Excel template with VLOOKUP on worksheet 1
I can load data into an excel template to populate it with the formatting desired.

I want to populate worksheet 2 AND use the VLOOKUP and sums on the template worksheet1 tab. [I have searched for the entire here and on the 'www'.] The issue is keeping the VLOOKUPS in the template.

Can anyone shed some light on this for me?
Thanks!

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


WebFOCUS 8.1.05 Windows 7, all output
January 19, 2015, 03:56 AM
Wep5622
Is that an EXL07 template?

We use those templates with EXL07 with VLOOKUP in several reports, so it does work.

There's probably something about the way you go about it that it doesn't work for you, so perhaps you should explain what you're doing? Wink

There are some examples of using EXL07 templates in these forums that should be useful to your case. For example: http://forums.informationbuild...257083336#6257083336


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
January 20, 2015, 10:57 AM
mpbMDE
I am sorry I didn't specify: We use EXL2K.


WebFOCUS 8.1.05 Windows 7, all output
January 20, 2015, 12:39 PM
mpbMDE
 
TABLE FILE GGSALES
SUM
     DOLLARS
     BUDDOLLARS
BY REGION
HEADING
""
FOOTING
""
ON TABLE SET PAGE-NUM OFF
ON TABLE SET BYDISPLAY ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT EXL2K TEMPLATE 'rm_mysheet' SHEETNUMBER 2
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='ARIAL',
     SIZE=9,
$
TYPE=TABHEADING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=TABFOOTING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=HEADING,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=SUBHEAD,
     SIZE=10,
     STYLE=BOLD,
$
TYPE=SUBFOOT,
     SIZE=10,
     STYLE=BOLD,
$
TYPE=SUBTOTAL,
     BACKCOLOR=RGB(210 210 210),
$
TYPE=ACROSSVALUE,
     SIZE=9,
$
TYPE=ACROSSTITLE,
     STYLE=BOLD,
$
TYPE=GRANDTOTAL,
     BACKCOLOR=RGB(210 210 210),
     STYLE=BOLD,
$
ENDSTYLE
END
-RUN

I cannot get the formula to work.
I created a template by
-Running the above as a normal excel file.
-I then copied it to worksheet 2.
-I added the formula to worksheet 1 in column D3 through D6 to add the column B and C on worksheet 2.
-The formula worked in the excel file.
-I then saved that as a template [rm_mysheet.mht].

When I run the above fex, the summation values are just 0's and there is no formula to add worksheet 2 values.

Thanks!
Marilyn

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


WebFOCUS 8.1.05 Windows 7, all output
January 21, 2015, 07:20 AM
Tony A
Marilyn,

What version of MS Excel did you use to save the MHT file?

If it's not 2003 then you have found the reason why some companies still hold on to a single copy of Excel 2003 - just to amend templates!

MicroSoft, very kindly, decided to stop support of macros in single page web archives such that when you save as an MHT in Excel 2007+ you lose the macro code.

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 
January 21, 2015, 11:59 AM
mpbMDE
Aha! I created the template using Excel in Microsoft Office Professional Plus 2010!

That is exactly what I am seeing in the template. A VLOOKUP or SUM of data on another page isn't exactly a macro. But I get the point.

Thanks!


WebFOCUS 8.1.05 Windows 7, all output