Skip to content

Commit 6b453d0

Browse files
authored
[excel] (Table) Remove copyFrom tip due to inaccuracy (#763)
1 parent bc91f6c commit 6b453d0

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

docs/resources/samples/table-samples.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Table samples
33
description: A collection of samples showing how to interact with Excel tables.
4-
ms.date: 10/30/2023
4+
ms.date: 09/25/2024
55
ms.localizationpriority: medium
66
---
77

@@ -45,13 +45,6 @@ function main(workbook: ExcelScript.Workbook) {
4545
}
4646
```
4747

48-
> [!TIP]
49-
> 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.
50-
>
51-
> ```TypeScript
52-
> workbook.addWorksheet().getRange("A1").copyFrom(table.getRange());
53-
> ```
54-
5548
### Filter out one value
5649

5750
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.

0 commit comments

Comments
 (0)