
Retrieving defined names in a workbook
getDefinedNames-methods.RdRetrieves the defined names in a workbook.
Arguments
- object
The
workbookto use- validOnly
If
validOnly = TRUEonly names with valid references are returned. Valid references are ones not starting with #REF! or #NULL! - which could result e.g. due to a missing sheet reference. The default value forvalidOnlyisTRUE.- worksheetScope
Optional - the name of the worksheet in which the names are scoped; to only query names in the global scope, use the value
""
Details
If option XLConnect.setCustomAttributes is TRUE (default FALSE),
a list of the worksheet scopes in which the names were found is set as attribute worksheetScope on the result.
Author
Martin Studer
Mirai Solutions GmbH https://mirai-solutions.ch
Examples
if (FALSE) { # \dontrun{
# mtcars xlsx file from demoFiles subfolder of package XLConnect
mtcarsFile <- system.file("demoFiles/mtcars.xlsx", package = "XLConnect")
# Load workbook
wb <- loadWorkbook(mtcarsFile)
# Retrieve defined names with valid references
getDefinedNames(wb)
} # }