Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Saving Excel WorkBook as WebPage Thru VBScript..

Hi,

I am trying to automate to save an Excel Sheet as a Webpage using VBScript called from SQL Server DTS package execution.

I tried two options,

1. Recorded Macro to SaveAsWeb Page and called this macro from VBScript as ExcelApplication.workbooks.Run(€śMacro€ť). This works fine as long as
I have pre created file. However, I need to create multiple files on the fly and I dont know how I can use macros here.

2. Other option I tried is to use ExcelApplication.activeworkbook.SaveAs (€śFilename.HTM€ť) which just renames the files as .HTM which contains garbage.
I also tried to use the above Macro code which uses ExcelApplication.activeworkbook.SaveAs FileName=€ťfile.htm€ť, fileformat=xlhtml €¦.. but this call is failing.

Could some please provide any suggestions?

Thanks in advance.

Reply
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
Problems saving Workbook as webpage with interactivity (Excel 2002 tech1NJ Excel Worksheet Functions 0 October 5th 09 08:43 PM
excel - hyperlinks to pdf documents and saving as webpage Althea Excel Discussion (Misc queries) 0 July 23rd 07 03:34 AM
Saving an entire workbook as a PDF using VBSCript Who be dat? Excel Discussion (Misc queries) 5 March 20th 06 07:09 PM
Saving an entire workbook as a PDF using VBSCript Who be dat? Excel Worksheet Functions 4 March 20th 06 07:09 PM
open Excel workbook using vbscript Tom Ogilvy Excel Programming 0 September 16th 03 04:38 PM


All times are GMT +1. The time now is 10:44 AM.

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"