Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[excel] (Table) Remove copyFrom tip due to inaccuracy #763

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions docs/resources/samples/table-samples.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Table samples
description: A collection of samples showing how to interact with Excel tables.
ms.date: 10/30/2023
ms.date: 09/25/2024
ms.localizationpriority: medium
---

Expand Down Expand Up @@ -45,13 +45,6 @@ function main(workbook: ExcelScript.Workbook) {
}
```

> [!TIP]
> Copy the filtered information across the workbook by using `Range.copyFrom`. Add the following line to the end of the script to create a new worksheet with the filtered data.
>
> ```TypeScript
> workbook.addWorksheet().getRange("A1").copyFrom(table.getRange());
> ```

### Filter out one value

The previous sample filters a table based on a list of included values. To exclude a particular value from the table, you need to provide the list of every other value in the column. This sample uses a function `columnToSet` to convert a column into a set of unique values. That set then has the excluded value ("Station-1") removed.
Expand Down