type = xlsx.GetObjectType()
GetAttribute()
, SetObjectData()
, GetObjectData()
, etc.
In particular, Hollywood's GetAttribute()
function may be used to query certain properties of
XLSX documents. The following attributes are currently supported by GetAttribute()
for XLSX documents:
#XLSXATTRSHEETS:
xlsx.Open(1, "test.xlsx") XLSX_DOCUMENT = xlsx.GetObjectType() numsheets = GetAttribute(XLSX_DOCUMENT, 1, #XLSXATTRSHEETS)The code above opens
test.xlsx
and queries the number of sheets
in the document via GetAttribute()
.