F
FatherGuido
Hi,
Windows 2000 & Excel 2002.
I'm trying to publish the current region as html when selected when I'm
in cell A1. Named ranges, current region etc. are NOT acceptable
references, only col/row ranges, so I'm trying to get the address of the
variable Current Region. My range will always start in A1 and go to
column AB, but the row will change.
The efforts below were provide by Tom Ogilvy previously, but none of
them worked for me.
__________________________________
Dim rng as Range
set rng = Worksheets("NBSS1101 CR List").Range("A1").CurrentRegion
Workbook.PublishObjects.Add( _
SourceType:=xlSourceRange, _
Filename:="\\docs\Departments\2l54\Page.htm", _
Sheet:="NBSS1101 CR List", _
Source:=rng.Address, _
HtmlType:=xlHtmlCalc).Publish
End Sub
___________________________________
Workbook.PublishObjects.Add( _
SourceType:=xlSourceRange, _
Filename:="\\docs\Departments\2l54\Page.htm", _
Sheet:="NBSS1101 CR List", _
Source:=Range("Test").Address, _
HtmlType:=xlHtmlCalc).Publish
End Sub
___________________________________
Workbook.PublishObjects.Add( _
SourceType:=xlSourceRange, _
Filename:="\\docs\Departments\2l54\Page.htm", _
Sheet:="NBSS1101 CR List", _
Source:="Test", _
HtmlType:=xlHtmlCalc).Publish
End Sub
___________________________________
I'm getting desparate for a solution. If you can help please feel free
to do so.
Thanks!
Norm
Father Guido
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
I plan on living forever... so far, so good
Windows 2000 & Excel 2002.
I'm trying to publish the current region as html when selected when I'm
in cell A1. Named ranges, current region etc. are NOT acceptable
references, only col/row ranges, so I'm trying to get the address of the
variable Current Region. My range will always start in A1 and go to
column AB, but the row will change.
The efforts below were provide by Tom Ogilvy previously, but none of
them worked for me.
__________________________________
Dim rng as Range
set rng = Worksheets("NBSS1101 CR List").Range("A1").CurrentRegion
Workbook.PublishObjects.Add( _
SourceType:=xlSourceRange, _
Filename:="\\docs\Departments\2l54\Page.htm", _
Sheet:="NBSS1101 CR List", _
Source:=rng.Address, _
HtmlType:=xlHtmlCalc).Publish
End Sub
___________________________________
Workbook.PublishObjects.Add( _
SourceType:=xlSourceRange, _
Filename:="\\docs\Departments\2l54\Page.htm", _
Sheet:="NBSS1101 CR List", _
Source:=Range("Test").Address, _
HtmlType:=xlHtmlCalc).Publish
End Sub
___________________________________
Workbook.PublishObjects.Add( _
SourceType:=xlSourceRange, _
Filename:="\\docs\Departments\2l54\Page.htm", _
Sheet:="NBSS1101 CR List", _
Source:="Test", _
HtmlType:=xlHtmlCalc).Publish
End Sub
___________________________________
I'm getting desparate for a solution. If you can help please feel free
to do so.
Thanks!
Norm
Father Guido
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
I plan on living forever... so far, so good