InsertNewFootnoteAt Method (Python)
Inserts a new footnote for the specified row/column label.
Syntax
index=SpssLabels.InsertNewFootnoteAt(row,column,string)
Parameters
row. Row index in the label array
column. Column index in the label array
string. New footnote text
Return Value
index. Integer (to be used to insert the footnote in other cells if it is a shared footnote)
Example
This example inserts a footnote for the column label with row index
1 and column index 1 (in the column label array), and it also inserts
a shared footnote for the column label with row index 1 and column
index 2. It assumes that PivotTable
is an SpssPivotTable
object.
Labels = PivotTable.ColumnLabelArray()
index = Labels.InsertNewFootnoteAt(1,1,"My footnote")
Labels.InsertSharedFootnoteAt(1,2,index)