Drawings.SetActiveSheet (Sheet) Method
Exception type | Condition |
---|---|
Thrown when the element does not exist in the collection. |
When a Sheet is set as active, the following changes happen:
- The entities of the current ActiveSheet are cleared.
- The entities of the Drawings are moved to the current ActiveSheet.
- The Sheet is set as ActiveSheet and its entities are moved to the Drawings.
Since the drawings collection is modified, this method can't be called in a Foreach loop.