This example publishes slides three through five of the active presentation to HTML. It includes the associated speaker's notes with the published presentation and names it Mallard.htm.
With ActivePresentation.PublishObjects(1)
.FileName = "C:\Test\Mallard.htm"
.SourceType = ppPublishSlideRange
.RangeStart = 3
.RangeEnd = 5
.SpeakerNotes = True
.Publish
End With