Get Last Column Index ===================== Category -------- Excel Commands Description ----------- This command allows you to find the last column in a used range in an Excel Workbook. Use this command to determine how many columns have been used in the Excel Workbook. You can use this value in a \*\*Number Of Times\*\* Loop to get data. Parameters ---------- **Instance Name** Enter the instance name to indicate the selected workbook **Sheet Name** Indicate the name of the sheet within the Workbook to activate **Column Letter** Letter of the Column to check (ex. A, A:G). If input is Letter + Number, it returns the max row of that column letter. If input is Letter + Number : Letter + Number, it returns the minimum between the last row and the input Number. **Variable** Assign result to variable Returned Value -------------- This command does not have returned value. Example Usage ------------- Example Location: `BYpass\\Examples\\Excel Commands\\Get Last Column Index\\Get Last Column Index.xml` See Also -------- - :doc:`Add Workbook ` - :doc:`Add Worksheet ` - :doc:`Append Cell ` - :doc:`Append Row ` - :doc:`Close Workbook ` - :doc:`Copy Worksheet ` - :doc:`Delete Cell ` - :doc:`Delete Row ` - :doc:`Excel Create Datatable ` - :doc:`Export to PDF ` - :doc:`Get Cell ` - :doc:`Get Cell Style ` - :doc:`Get Last Row Index ` - :doc:`Get Range ` - :doc:`Get Range As Datatable ` - :doc:`Get Worksheets ` - :doc:`Go To Cell ` - :doc:`Insert Cell ` - :doc:`Lookup Range ` - :doc:`Open Workbook ` - :doc:`Remove Duplicate ` - :doc:`Run Macro ` - :doc:`Save Workbook ` - :doc:`Save Workbook As ` - :doc:`Set Range ` - :doc:`Write Range ` - :doc:`Write Row `