Fill a vector with column indexes where column is completely or partially selected
GetSelectedColumns()
Vector of integers which will receive the 0-offset indices of all selected columns
import PyOrigin wks=PyOrigin.WorksheetPages('Book1').Layers(0) vec=wks.GetSelectedColumns() print('The index of the select column is:') for x in vec: print(x)