LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
dd dd is offline
external usenet poster
 
Posts: 95
Default Save as single file webpage

I have a list of hyperlinked files, which, when saved as a signle file
webpage, the user can right click and save.
The list will become bigger and bigger as work goes on. I want be able to
select the print area and then hit the
save command button to save as a single file web page.

I'e added a save command button to the page and recorded the following macro
to apply to the button, but it doesn't work.

Private Sub cmdSave_Click()
With ActiveWorkbook.PublishObjects.Add(xlSourcePrintAre a, _
"P:\GBGWA\Rail\Jobs\5048337 OPI06\Surveys\Index of Proforma
Files.mht", "List1" _
, "", xlHtmlStatic, "Proforma Index (pfm files)_27036", "")
.Publish (True)
.AutoRepublish = False
End With


End Sub

I get an error at .Publish (True) "Runtime error 1004 Application-defined or
object-defined error."

Please advise
D Dawson



 
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
how to save a single column as a seperate file grc46 Excel Discussion (Misc queries) 2 May 20th 07 07:35 PM
Save a single file webpage of each visible sheet in a workbook Matt Excel Programming 4 June 30th 06 05:44 PM
Save a single worksheet in Excel as a single file. Dakota New Users to Excel 4 February 22nd 06 04:46 PM
Save single sheet from XLS file as HTML Tomasz Klim Excel Discussion (Misc queries) 2 July 29th 05 03:55 PM
Can you save a single sheet directly to a new file defensiveone Excel Worksheet Functions 2 May 13th 05 08:10 PM


All times are GMT +1. The time now is 06:35 AM.

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

About Us

"It's about Microsoft Excel"