Export (0) Print
Expand All

Charts.Add Method 

Creates a new chart sheet. Returns a Chart object.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)

Dim Before As Object
Dim After As Object
Dim Count As Object
Dim returnValue As Chart
Dim charts1 As Charts
returnValue = charts1.Add(Before, After, Count)

Chart Add(
	[In, Optional] object Before, 
	[In, Optional] object After, 
	[In, Optional] object Count
public Chart Add(
	/*in*/System.Object Before, 
	/*in*/System.Object After, 
	/*in*/System.Object Count
function Add(
	 Before : Object, 
	 After : Object, 
	 Count : Object
) : Chart;



Optional Object. An object that specifies the sheet before which the new sheet is added.


Optional Object. An object that specifies the sheet after which the new sheet is added.


Optional Object. The number of sheets to be added. The default value is 1.

If Before and After are both omitted, the new chart is inserted before the active sheet.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Community Additions

© 2014 Microsoft