close excel workbook

Close an Excel workbook.
NameDescriptionTypeModifier
file path

The location of the Excel file.

StringNone
auto save

(Optional) Save the Excel workbook before closing.

Default Value: true
Value Settrue, false
None
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.
Example 1: close excel workbook with auto save = true
        
          	file path						
open excel workbook	D:\data.xlsx						
&nbsp							
	file path	sheet	cell	value			
set excel cell value	D:\data.xlsx	Rental Car	D8	Kia Carnival			
&nbsp							
	file path	auto save					
close excel workbook	D:\data.xlsx	true					
&nbsp							
        
    
Result
Example 2: close excel workbook with auto save = false
        
          	file path						
open excel workbook	D:\data.xlsx						
&nbsp							
	file path	sheet	cell	value			
set excel cell value	D:\data.xlsx	Rental Car	D8	Kia Carnival			
&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.
  • If you don't use the built-in action close excel workbook, TestArchitect will automatically close the Excel workbook without saving the Excel file at the end of the test execution session.

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