Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Excel Template with macros does it work in Excel 2007
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] Excel Template with macros does it work in Excel 2007
 Login/Join
 
Silver Member
posted
Hello everyone
I have tried to follow Mario's sample and create an mht with macros to use as a template to be able to update in WebFOCUS from Excel.
It seems like this doesn't work anymore.

When i open the .XLS (i developed it in) it works fine except i don't get any data.
When i save as mht i get a warning with a Help
button;
Pressig that and reading, I find the following:
These Web Page file formats (.htm, .html), Single File Web Page file formats (.mht, .mhtml) can be used for exporting Excel data. In Office Excel 2007, worksheet features (such as formulas, charts, PivotTables, and Visual Basic for Application (VBA) projects) are no longer supported in these file formats, and they will be lost when you open a file in this file format again in Excel.

So, i must convert this to VB.NET i guess or abandon this project completely.
Am i right or am i doing it wrong?
Best regards,
Mats

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


Mats Sundelin
Cybernetics Business Solutions AB
 
Posts: 31 | Location: Stockholm, sweden | Registered: January 19, 2005Reply With QuoteReport This Post
<JG>
posted
Mats

It works perfectly in Excel 2007 and 2010

However YOU MUST create the template in Excel 2003.
And the output format MUST be EXL2K not EXL07
 
Reply With QuoteReport This Post
Expert
posted Hide Post
Mats,

In Office 2007 onwards, Microsoft are no longer supporting macros etc. in MHT files as you have found.

However, I recently wrote an article that will allow you to overcome this in the interim until IB provide that ability using MS 2007+.

You can find the article and example code etc. here.

Good luck.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5610 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport This Post
Silver Member
posted Hide Post
Thank you Tony.
I will jump into it right away.
Best regards, Mats


Mats Sundelin
Cybernetics Business Solutions AB
 
Posts: 31 | Location: Stockholm, sweden | Registered: January 19, 2005Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Excel Template with macros does it work in Excel 2007

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.