LabTalk to get all booknames and sheetnames


Version: 2026b

Type: Features

Category: Programming

Subcategory: Labtalk

Jira: ORG-32747


StringArray BookNames([scope])
StringArray SheetNames([scope, exclamation])
  • BookNames() function is used to get all book names.

  • SheetNames() function is used to get all sheet names.

  • Scope

    • 1 = Current Book (Default for BookNames)

    • 2 = Current Folder (Default for SheetNames)

    • 3 = Folder and Subfolders

    • 4 = Entire Project

  • Exclamation

    • Default = 0, no ! at the end

    • 1 means include ! at the end

Example

image-20260115-215021.png

This can also be used in F(x) to create range string to retrieve values from different sheets. B0 means the last value in col B

image-20260115-215620.png