From 64c10b9f25f20bb10355de5a5e8ab8e45331c32e Mon Sep 17 00:00:00 2001 From: Alison McKay Date: Wed, 25 Sep 2024 16:00:02 -0700 Subject: [PATCH] [excel] (Table) Remove copyFrom tip due to inaccuracy --- docs/resources/samples/table-samples.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/docs/resources/samples/table-samples.md b/docs/resources/samples/table-samples.md index f22443e0..351188ff 100644 --- a/docs/resources/samples/table-samples.md +++ b/docs/resources/samples/table-samples.md @@ -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 --- @@ -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.