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: 74
Default Save as web page

I am using macro code to generate multiple workbooks from data in one large
workbook. After the individual workbooks are generated, they are each saved
with a unique file name.

How can I change the code to have it save in .htm format? The code I'm
currently using is below. I tried changing "FileExStr" to .htm, but that
doesn't work. I'm assuming I need a new file format, and tried searching
online but can't find it anywhere. Any suggestions?

Thanks!
Else
'You use Excel 2007
If ws1.Parent.FileFormat = 56 Then
FileExtStr = ".xls": FileFormatNum = 56
Else
FileExtStr = ".xlsx": FileFormatNum = 51
End If

then further down ..
'Save the file in the new folder and close it
WBNew.SaveAs foldername & " Value = " _
& cell.Value & FileExtStr, FileFormatNum
WBNew.Close False

 
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
Save, save as, page setup dimmed out in unprotected excel sheet? ccKeithJ Excel Discussion (Misc queries) 3 December 14th 07 07:07 PM
save page ,clear page, reuse same page dave Excel Programming 1 June 6th 07 06:01 AM
Save As... / Save as Web Page... how to differentiate? Jörgen Ahrens Excel Programming 1 February 20th 06 06:55 AM
How do I save one page out of a 80 page report in excel? bellamere New Users to Excel 2 February 15th 06 08:25 PM
Save as Web Page Eva Excel Discussion (Misc queries) 0 February 2nd 06 04:55 AM


All times are GMT +1. The time now is 08:27 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"