Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Provides information about the table that raised the selection changed event.
address | Gets the range address that represents the selected area of the table on a specific worksheet. |
is |
Specifies if the selection is inside a table. |
table |
Gets the ID of the table in which the selection changed. |
type | Gets the type of the event. See |
worksheet |
Gets the ID of the worksheet in which the selection changed. |
Gets the range address that represents the selected area of the table on a specific worksheet.
address: string;
string
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/30-events/events-table-changed.yaml
async function onSelectionChange(args) {
await Excel.run(async (context) => {
console.log("Handler for table onSelectionChanged event has been triggered. The new selection is: " + args.address);
});
}
Specifies if the selection is inside a table. IsInsideTable
must be set to true
for the address to be useful.
isInsideTable: boolean;
boolean
Gets the ID of the table in which the selection changed.
tableId: string;
string
Gets the type of the event. See Excel.EventType
for details.
type: "TableSelectionChanged";
"TableSelectionChanged"
Gets the ID of the worksheet in which the selection changed.
worksheetId: string;
string
Office Add-ins feedback
Office Add-ins is an open source project. Select a link to provide feedback:
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in