get excel worksheet property

Retrieve the Excel worksheet property.
NameDescriptionTypeModifier
file path

The location of the Excel file.

StringNone
sheet

Name or index of the sheet within the Excel file where the action will be performed. (Index starts at 1)

StringNone
property

Worksheet property to be retrieved.

Allowable values:

  • first used column: letter of the first column containing data in an Excel worksheet.
  • first used row: number of first row containing data in an Excel worksheet.
  • used columns: total column number in an Excel worksheet.
  • used rows: total row number in an Excel worksheet.
  • name: name of the specified worksheet.

Value Setfirst used column, first used row, used rows, used columns, name
variable

(Optional) Variable to receive the returned value.

StringNone
Value of specified property from an Excel worksheet
This action may be used within the following project items: test modules and user-defined actions.
The following settings are applicable to this action: remove double quotes from cells.
        
          	file path			
open excel workbook	D:\data.xlsx			
&nbsp				
	file path	sheet	property	variable
get excel worksheet property	D:\data.xlsx	Car Orders Data	used rows	total_row
&nbsp				
	file path	sheet	property	variable
get excel worksheet property	D:\data.xlsx	Car Orders Data	used columns	total_column
&nbsp				
	file path	sheet	property	variable
get excel worksheet property	D:\data.xlsx	Car Orders Data	first used row	first_used_row
&nbsp				
	file path	sheet	property	variable
get excel worksheet property	D:\data.xlsx	Car Orders Data	first used column	first_used_column
&nbsp				
	file path	sheet	property	variable
get excel worksheet property	D:\data.xlsx	1	name	sheet_name
&nbsp				
	file path	auto save		
close excel workbook	D:\data.xlsx	false		
&nbsp				
        
    

Result
  • This action only supports Excel extensions: .xls, .xlsx, .xlsm.
  • You need to use built-in action open excel workbook before proceeding with this action.
  • sheet argument:
    • If a sheet name has the value as a numerical text (e.g. the sheet name is 7), enclose the value in quotation marks to differentiate it from a numerical index value (e.g. "7").

Copyright © 2024 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1 (650) 572-1400