Skip to content

Commit b8aa429

Browse files
committed
Implement initial fix to #25
Appears to correctly address the problem leading to RTE 91 when the header option was enabled and an entire row/column was selected that did not intersect .UsedRange Closes #25.
1 parent f9a6328 commit b8aa429

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/UFExporter.frm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,12 @@ Private Function getHeaderRangeAddress() As String
442442
'
443443
' Or, if header export is deselected, report accordingly
444444

445+
Dim headerRange As Range
446+
447+
Set headerRange = getHeaderRange
448+
445449
If ChBxHeaderRows.Value Then
446-
If checkHeaderRowValues Then
450+
If Not headerRange Is Nothing And checkHeaderRowValues Then
447451
getHeaderRangeAddress = getHeaderRange.Address( _
448452
RowAbsolute:=False, ColumnAbsolute:=False _
449453
)

src/UFExporter.frx

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)