Share via


_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

  • Name
    Type: System.Object

    Optional 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

See Also

Reference

_Chart Interface

_Chart Members

Microsoft.Office.Interop.Excel Namespace