Drawings.SetActiveSheet (String) Method

Sets a sheet as the active one.
Public Sub SetActiveSheet( _ 
ByVal name As String
)
This language is not supported or no code example is available.
public void SetActiveSheet( 
string name 
)
This language is not supported or no code example is available.

Parameters

name
string

The Sheet name to set as active.

Exception type Condition

EyeshotException

Thrown when an element with the specified name does not exist in the collection or the name is null.

Remarks
 

When a Sheet is set as active, its entities are shared with the Drawings one.

Since the drawings collection is modified, this method can't be called in a Foreach loop.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition