When CreatePivotTable is called on a range, it does not check for doubles past (startRow + 1) in a given column. Curly braces were added in the row for-loop so that it won't break trying to convert an empty value to double.
Closing all PRs as this repo is being archived and will no longer be maintained by Microsoft. The project is licensed for continued use and development by forking to your own repo.
When CreatePivotTable is called on a range, it does not check for doubles past (startRow + 1) in a given column. Curly braces were added in the row for-loop so that it won't break trying to convert an empty value to double.