mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-30 23:23:31 +00:00
Add FullCalcOnLoad fix to Export-Excel direct save path
Co-authored-by: dfinke <67258+dfinke@users.noreply.github.com>
This commit is contained in:
@@ -682,6 +682,9 @@
|
||||
else {
|
||||
if ($ReturnRange) { $dataRange }
|
||||
|
||||
# Set FullCalcOnLoad to false to prevent Excel from corrupting formulas during recalculation
|
||||
# This fixes issues with table-structured references like [[#This Row],[ColumnName]]
|
||||
$pkg.Workbook.FullCalcOnLoad = $false
|
||||
if ($Password) { $pkg.Save($Password) }
|
||||
else { $pkg.Save() }
|
||||
Write-Verbose -Message "Saved workbook $($pkg.File)"
|
||||
|
||||
Reference in New Issue
Block a user