# SpreadsheetSetActiveSheet

Sets a sheet in a spreadsheet as active.

## Method Signature

```
SpreadsheetSetActiveSheet(spreadsheetObj=[any], sheetName=[any])
```

### Arguments

| Argument         | Type     | Required | Description                           | Default |
| ---------------- | -------- | -------- | ------------------------------------- | ------- |
| `spreadsheetObj` | `ANY`    | `true`   | The spreadsheet object.               |         |
| `sheetName`      | `STRING` | `true`   | The name of the sheet to make active. |         |

## Examples

Set active sheet:

```js
// Activate a specific sheet
var spreadsheet = SpreadsheetNew();
SpreadsheetCreateSheet( spreadsheet, "Data" );
SpreadsheetSetActiveSheet( spreadsheet, "Data" );
```

## Related

* [SpreadsheetCreateSheet()](https://boxlang.ortusbooks.com/boxlang-framework/boxlang-plus/modules/bx-spreadsheet/reference/built-in-functions/spreadsheetcreatesheet) - Create sheet
* [SpreadsheetSetActiveCell()](https://boxlang.ortusbooks.com/boxlang-framework/boxlang-plus/modules/bx-spreadsheet/reference/built-in-functions/spreadsheetsetactivecell) - Set active cell
* [SpreadsheetGetActiveCell()](https://boxlang.ortusbooks.com/boxlang-framework/boxlang-plus/modules/bx-spreadsheet/reference/built-in-functions/spreadsheetgetactivecell) - Get active cell
