LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Publishing a static table using jscript (Excel 2007)

Hi all,

I have a single table in my xlsx file.
I would like to create a [static] html (.htm) file containing this
table.
Keep in mind that I don't want to save the workbook or worksheet as
htm (SaveAs( ..., 44 )) since it generates not a single but multiple
files with [dynamic] html containing an ActiveX and allowing user to
browse through sheets which I don't have more than... one.

The way to see the table in the .htm form through a menu system is by
doing:
Save As/Other Formats selecting .mht .htm, selecting Single Web Page,
and saving.
The new file is the only file being saved.

I believe it's called publishing.

I need an jscript method.
Something like that:

ea = new ActiveXObject( "Excel.Application" ) ;
ea.DisplayAlerts = 0 ;
wb = ea.Workbooks.Open( "myfile.xlsx" ) ;
ws = wb.Worksheets( "Sheet1" ) ;
ws.Activate() ;
ws.PivotTables( 1 ).RefreshTable ;
--- here comes the function that would look like that:
--- ws.SaveAs( "myfile.htm", magicnumber-but-not-44 ) ;
--- I believe there could be something like this:
--- ws.Publish( "myfile.htm", static ) ;
wb.Close ;

Thank you for any help in adance,
Greg.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
publishing Excel 2007 charts Mary Ann[_2_] Charts and Charting in Excel 0 May 12th 09 06:19 PM
Publishing a static table as html using jscript (Excel 2007) [email protected] Excel Discussion (Misc queries) 3 May 24th 08 05:36 AM
Pivot table turning static in Excel 2007 hasmuk Excel Discussion (Misc queries) 0 July 18th 07 12:18 PM
Publishing a Pivot List in Excel 2007 dan Excel Worksheet Functions 4 January 30th 07 10:41 PM
Publishing a Table in Excel 2007 (Beta 2) to a SharePoint List R3nReno Excel Discussion (Misc queries) 0 August 2nd 06 05:33 PM


All times are GMT +1. The time now is 03:57 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"