code: def moveVisibleCol(sheet, fromVisColIdx, toVisColIdx):
      'Move visible column to another visible index in sheet.'
      toVisColIdx = min(max(toVisColIdx, 0), sheet.nVisibleCols)
      fromColIdx = sheet.columns.index(sheet.visibleCols[fromVisColIdx])
      toColIdx = sheet.columns.index(sheet.visibleCols[toVisColIdx])
      moveListItem(sheet.columns, fromColIdx, toColIdx)
      return toVisColIdf moveVisibleCol(sheet, fromVisColIdx, toVisColIdx):
      'Move visible column to another visible index in sheet.'
      toVisColIdx = min(max(toVisColIdx, 0), sheet.nVisibleCols)
      fromColIdx = sheet.columns.index(sheet.visibleCols[fromVisColIdx])
      toColIdx = sheet.columns.index(sheet.visibleCols[toVisColIdx])
      moveListItem(sheet.columns, fromColIdx, toColIdx)
      return toVisColIdx
docs: Move visible column to another visible index in sheet.