_Chart.Location Method
Moves the chart to a new location.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function Location ( _
Where As XlChartLocation, _
Name As Object _
) As Chart
'Usage
Dim instance As _Chart
Dim Where As XlChartLocation
Dim Name As Object
Dim returnValue As Chart
returnValue = instance.Location(Where, _
Name)
Chart Location(
XlChartLocation Where,
Object Name
)
Parameters
Where
Type: Microsoft.Office.Interop.Excel.XlChartLocationRequired XlChartLocation. Where to move the chart.
Name
Type: System.ObjectOptional Object; required if Where is xlLocationAsObject. The name of the sheet where the chart will be embedded if Where is xlLocationAsObject or the name of the new sheet if Where is xlLocationAsNewSheet.
Return Value
Type: Microsoft.Office.Interop.Excel.Chart