+ Reply to Thread
Results 1 to 2 of 2

Save Worksheet As HTML Page

Hybrid View

Guest Save Worksheet As HTML Page 02-09-2006, 01:20 AM
Guest Re: Save Worksheet As HTML... 02-21-2006, 09:25 AM
  1. #1
    Excel
    Guest

    Save Worksheet As HTML Page

    Hi there

    I recorded a macro to do a simple html export that is assigned to a button.
    This works fine.

    The VBA code is

    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



    Id like to add a few more in the file name it saves it to.Through vba code
    is there
    a way to make the file that is save with the following file name format.

    QuoteNo_1000_cell(D10)_todaysdate.htm

    So an example would be

    QuoteNo_1001_Company Name_09022006.xls

    1001 The number would increment by 1 every time the macro is run.
    And company Name is from cell D10 in the worksheet.

    I imagine I would have to store the quoteno somewhere in a worksheet of its
    own???

    any help appreciated



  2. #2
    David McRitchie
    Guest

    Re: Save Worksheet As HTML Page

    Just noticed you posted twice so I will dump what I was working on into that
    thread after Nick Hodge's reply, your other thread is at
    http://groups.google.com/groups?thre...TNGP10.phx.gbl.




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1