Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() This may be rough, but it works: Sub Macro1() ' ' Macro1 Macro ' Macro recorded 8/1/2005 to publish active sheet and the next sheet (to right) as web pages. With ActiveWorkbook.PublishObjects.Add( _ SourceType:=xlSourceRange, _ Filename:="ftp://mysite.com/Current.htm", _ Sheet:=ActiveSheet.Name, _ Source:="A2:I55", _ HtmlType:=xlHtmlStatic) Publish (True) AutoRepublish = False End With Dim i As Integer Dim intStart As Integer intStart = ActiveSheet.Index + 1 For i = intStart To Worksheets.Count If Not Worksheets(i).Visible = xlHidden Then 'Note: Could add "and Worksheets(i).Visible = xlVeryHidden to above Worksheets(i).Activate Exit Sub End If Next i With ActiveWorkbook.PublishObjects.Add( _ SourceType:=xlSourceRange, _ Filename:= "ftp://mysite.com/Next.htm", _ Sheet:=ActiveSheet.Name, _ Source:="A2:I55", _ HtmlType:=xlHtmlStatic) Publish (True) AutoRepublish = False End With End Sub -- Stellina ------------------------------------------------------------------------ Stellina's Profile: http://www.excelforum.com/member.php...o&userid=25784 View this thread: http://www.excelforum.com/showthread...hreadid=391868 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
publish as web page | Excel Discussion (Misc queries) | |||
Automate 'Publish as Web Page'? | Excel Discussion (Misc queries) | |||
Publish as Wed Page | Setting up and Configuration of Excel | |||
How to add todays date (static) to the current active cell using m | Excel Discussion (Misc queries) | |||
publish excel as web page | Excel Programming |