When I record a macro for publishing a sheet, I get this:
Sub Macro2()
'
' Macro2 Macro
' Macro to save active sheet as static web page
'
'
With ActiveWorkbook.PublishObjects.Add(xlSourcePrintAre a, _
"D:\Documents and Settings\My Documents\Schedule.htm", _
"August", "", xlHtmlStatic, "Schedule_2005_16684", "")
.Publish (True)
.AutoRepublish = False
End With
End Sub
How do I get this to work on the active sheet, regardless of what it'
name is?
The workbook name is Schedule_2005, so what do the numbers after tha
mean?
Thanks for any and all help. I'm lost in this VBA stuff. Stellin
--
Stellin
-----------------------------------------------------------------------
Stellina's Profile:
http://www.excelforum.com/member.php...fo&userid=2578
View this thread:
http://www.excelforum.com/showthread.php?threadid=39186