Hi,
I am using office 2010 i am creating relative macro for cells.
I am facing issue that on relative select its not selecting relative cell.Its only select select same range which i assigned while creating.
How i can fix it? PFB code.Thanks In advance.
BR,
Smith.
I am using office 2010 i am creating relative macro for cells.
I am facing issue that on relative select its not selecting relative cell.Its only select select same range which i assigned while creating.
How i can fix it? PFB code.Thanks In advance.
BR,
Smith.
Code:
Sub Macro2()
'
' Macro2 Macro
'
'
ActiveCell.Select
Range("a:z").Select
Selection.End(xlToLeft).Select
Range("a5:c6").Select
With ActiveWorkbook.PublishObjects.Add(xlSourceRange, _
"C:\Documents and Settings\andy\Desktop\sPage.htm", "Example", "$A$7:$D$11", _
xlHtmlStatic, "example+table+for+html_25881", "")
.Publish (True)
.AutoRepublish = False
End With
End Sub