Record a repeatable Office Script

Save a recurring formatting task and replay it on a fresh worksheet.

Step by step

  1. Open a sample workbook on an account with Office Scripts enabled. On the Automate tab, choose Record Actions.
  2. Select a header range, apply bold formatting and set the fill color. Stop recording and give the script a descriptive name.
  3. Repeat the test on a copy with the same layout. Check whether the recorded script targets a fixed address or the active selection.
  4. Open the script editor to inspect the recorded steps before sharing it with colleagues.
Microsoft reference

Search ExcelTutor