Hi
I have the following macro which exports my sheet (Page1) as an HMTL file and it works well, except it exports the entire page. I was wondering if it could be modified to export only a selection of cells on the page? such as A1:CN106?
Thanks to L42's answer on Stackoverflow for the macro
Thanks
I have the following macro which exports my sheet (Page1) as an HMTL file and it works well, except it exports the entire page. I was wondering if it could be modified to export only a selection of cells on the page? such as A1:CN106?
VBA Code:
Sub HTML_File()
With ActiveWorkbook.PublishObjects.Add(xlSourceSheet, "C:\Exports\Page1.htm", "Page1", , xlHtmlStatic, , "")
.Publish (False)
.AutoRepublish = True
End With
End Sub
Thanks to L42's answer on Stackoverflow for the macro
Thanks