Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 28th, 2009, 02:40 PM
Registered User
 
Join Date: Jul 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Save workbook as HTML

Hi,

i have an excel workbook open and i need to create a macro that will save the workbook as an html file, but leave the original file the same.

i know there is a SaveCopyAs function, but i can only get that to work with saving as an .xls file.

Does anyone know if the SaveCopyAs has the ability to save the current workbook as an HTML file without changing what's in memory?

thanks
Scott
 
Old August 1st, 2009, 10:27 PM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Hi Scott

SaveCopyAs doesn;t have the option to save the workbook as HTML

You can try writing a small macro, which will open the Saved copy of Workbook and convert it as HTML in a new Excel instance (without affecting the existing one)

Cheers
Shasur
__________________
C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips & Tricks (http://www.vbadud.blogspot.com)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Open Workbook,Copy Sheet,Move Sheet, Close/Save ptrussell2009 Excel VBA 0 June 13th, 2008 02:28 PM
Excel Workbook Save: Trap Temp file creation Shasur Excel VBA 0 July 3rd, 2006 10:07 PM
Workbook slow to save cunninb Excel VBA 1 February 17th, 2005 10:11 AM
html form - save help bunnyhead HTML Code Clinic 2 January 24th, 2005 05:55 AM
Save the Existing Workbook to Other Filename tks_muthu Excel VBA 1 November 29th, 2004 10:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.