Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Save Excel book as Html Page Using Macro

Sub Macro1()
'
' Macro1 Macro
' Macro recorded 9/02/2006 by rulebr
'

'
With ActiveWorkbook.PublishObjects("Brady Standard Quote 7.2.06_23158")
.HtmlType = xlHtmlStatic
.Publish (False)
End With
End Sub




Ive recorded the following macro to save my worksheet as a html page.
Ive created a button and that works fine.

Is there a way I can get tricky with the name of the file it creates.

Basically I would like the file name to contain a number that increments
every time the macro is pressed.
Id also like it to contain the date, and the company name which is from cell
in the spreadsheet.


eg.

QuoteNo_1000_Company Name(Cell D10)_09022006.xls

QuoteNo_1001_Company Name(Cell D10)_09022006.xls

I guess i need to store the incrementing number somewhere in a worksheet of
its own so it knows the number to call.

Any help with the macro appreciated.



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
Macro-save to html puiuluipui Excel Discussion (Misc queries) 0 May 19th 10 07:47 AM
Macro to pull info from html page Mex Excel Discussion (Misc queries) 0 April 17th 07 09:52 PM
How do I save excel as HTML (but not as a full web page)? dls New Users to Excel 2 August 18th 05 12:07 AM
Using freezed panes in excel, how do I save the page as HTML? Jaffa„˘ Excel Discussion (Misc queries) 1 January 21st 05 09:25 AM
Save multiple sheets in a single html page Frank Kabel Excel Programming 0 May 21st 04 10:50 PM


All times are GMT +1. The time now is 02:32 PM.

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"