# ActivateTabData

If a [script add-in](../../../scripting/script_add-ins)implements the \*\*[OnActivateTab](../scripting_events/onactivatetab)\*\*event, the method receives an **ActivateTabData** object whenever the activation state of a tab changes.

| Property Name | Return Type             | Description                                                                                                                                                                                                                                                                                                          |
| ------------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| closing       | _bool_                  | Returns **True** if the activation change is due to the old tab being closed.                                                                                                                                                                                                                                        |
| newtab        | _object:_[**Tab**](tab) | Returns a [**Tab**](tab) object representing the tab that has become active.                                                                                                                                                                                                                                         |
| oldtab        | _object:_[**Tab**](tab) | Returns a [**Tab**](tab) object representing the tab that has gone inactive.                                                                                                                                                                                                                                         |
| qualifiers    | _string_                | <p>Returns a string indicating any qualifier keys that were held down by the user when the event was triggered.<br>The string can contain any or all of the following: <em>shift</em> <em>ctrl</em>, <em>alt</em>, <em>lwin</em>, <em>rwin</em><br>If no qualifiers were down, the string will be: <em>none</em></p> |
