PC Review


Reply
Thread Tools Rate Thread

code to save as webpage

 
 
Ryan
Guest
Posts: n/a
 
      19th Jun 2007
is there a way to have code run in a macro to automatically save a
chart / or workbook as a webpage?

Thanks!

Ryan

 
Reply With Quote
 
 
 
 
Mark Ivey
Guest
Posts: n/a
 
      20th Jun 2007
Give this one a try:

'---------------------------------------------------------------------------------------
' Module : SaveAsHTML
' DateTime : 6/19/2007 22:34
' Author : Mark Ivey - Modification from Dave Hawley's SaveAsPrompt
Module @
' http://www.ozgrid.com/forum/showthread.php?p=312642
' Purpose : To automatically save a file as an HTML Webpage (without
overwrite prompt)
'---------------------------------------------------------------------------------------

Sub SaveAsHTML()
Dim StrSave As String
'Change the path and filename as desired
StrSave = "C:\MyFile2"

If StrSave = "False" Then
Exit Sub
Else
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs StrSave, FileFormat:=xlHtml
Application.DisplayAlerts = True
End If
End Sub









"Ryan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> is there a way to have code run in a macro to automatically save a
> chart / or workbook as a webpage?
>
> Thanks!
>
> Ryan
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't save a webpage =?Utf-8?B?Sm9zZXBo?= Windows Vista General Discussion 0 12th Oct 2007 10:13 PM
Save as WebPage Andibevan Microsoft Powerpoint 15 4th Oct 2006 11:49 AM
My webpage displays the code instead of the webpage =?Utf-8?B?VGVycmk=?= Microsoft Frontpage 3 9th Jan 2005 01:52 AM
Save as webpage daniels012 Microsoft Excel Misc 3 19th Aug 2004 07:14 PM
Cannot save a webpage Don Windows XP Internet Explorer 3 19th Dec 2003 08:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:22 AM.