Skip to content

Commit a44d2bf

Browse files
authored
[excel] (Samples) Add mention of opening code editor to save scripts in PA samples (#729)
* Add mention of opening code editor to save scripts in PA samples * Clarify application * Missing word
1 parent 46ba90c commit a44d2bf

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

docs/resources/samples/automate-tasks-on-all-excel-files-in-folder.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Download <a href="https://github.com/OfficeDev/office-scripts-docs/blob/master/d
1616

1717
## Sample code: Add formatting and insert comment
1818

19-
This is the script that runs on each individual workbook. Add it to the sample workbook. Save it as **Review script** and try the sample yourself!
19+
This is the script that runs on each individual workbook. In Excel, use **Automate** > **New Script** to paste the code and save the script. Save it as **Review script** and try the sample yourself!
2020

2121
```TypeScript
2222
function main(workbook: ExcelScript.Workbook) {

docs/resources/samples/convert-csv.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Many services export data as comma-separated value (CSV) files. This solution au
1919

2020
Download <a href="https://github.com/OfficeDev/office-scripts-docs/blob/master/docs/resources/samples/convert-csv-example.zip?raw=true">convert-csv-example.zip</a> to get the Template.xlsx file and two sample .csv files. Extract the files into a folder in your OneDrive. This sample assumes the folder is named "output".
2121

22-
Add the following script to the sample workbook. Save it as **Convert CSV** and try the sample yourself!
22+
Add the following script to the sample workbook. In Excel, use **Automate** > **New Script** to paste the code and save the script. Save it as **Convert CSV** and try the sample yourself!
2323

2424
## Sample code: Insert comma-separated values into a workbook
2525

docs/resources/samples/email-images-chart-table.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ This workbook contains the data, objects, and formatting expected by the script.
4444
4545
## Sample code: Calculate and extract Excel chart and table
4646

47-
Add the following script to the sample workbook. Save it as **Get chart image** and try the sample yourself!
47+
Add the following script to the sample workbook. In Excel, use **Automate** > **New Script** to paste the code and save the script. Save it as **Get chart image** and try the sample yourself!
4848

4949
```TypeScript
5050
function main(workbook: ExcelScript.Workbook): ReportImages {

docs/resources/samples/excel-cross-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Download the following files to get ready-to-use workbooks for the sample.
2222
1. [event-data.xlsx](event-data.xlsx)
2323
1. [speaker-registrations.xlsx](speaker-registrations.xlsx)
2424

25-
Add the following scripts to try the sample yourself!
25+
Add the following scripts to try the sample yourself! In Excel, use **Automate** > **New Script** to paste the code and save the scripts with the suggested names.
2626

2727
## Sample code: Get event data
2828

docs/resources/samples/report-day-to-day-changes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This workbook contains the data, objects, and formatting expected by the script.
1818
1919
## Sample code: Record and report daily readings
2020

21-
Add the following script to the sample workbook. Save it as **Record daily value** and try the sample yourself!
21+
Add the following script to the sample workbook. In Excel, use **Automate** > **New Script** to paste the code and save the script. Save it as **Record daily value** and try the sample yourself!
2222

2323
```TypeScript
2424
function main(workbook: ExcelScript.Workbook, newData: string): string {

docs/resources/samples/write-large-dataset.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ For this sample, you'll need to complete the following steps.
153153

154154
1. Create a workbook in OneDrive named **SampleData.xlsx**.
155155
1. Create a second workbook in OneDrive named **TargetWorkbook.xlsx**.
156-
1. Open **SampleData.xlsx**.
156+
1. Open **SampleData.xlsx** with Excel.
157157
1. Add sample data. You can use the script from the [Write a large dataset in batches](#sample-1-write-a-large-dataset-in-batches) section to generate this data.
158-
1. Create and save both of the following scripts.
158+
1. Create and save both of the following scripts. Use **Automate** > **New Script** to paste the code and save the scripts with the suggested names.
159159
1. Follow the steps under [Power Automate flow: Read and write data in a loop](#power-automate-flow-read-and-write-data-in-a-loop) to create the flow.
160160

161161
### Sample code: Read selected rows

0 commit comments

Comments
 (0)