Skip to content

Commit

Permalink
Implement initial fix to #25
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bskinn committed Feb 7, 2020
1 parent f9a6328 commit b8aa429
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/UFExporter.frm
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,12 @@ Private Function getHeaderRangeAddress() As String
'
' Or, if header export is deselected, report accordingly

Dim headerRange As Range

Set headerRange = getHeaderRange

If ChBxHeaderRows.Value Then
If checkHeaderRowValues Then
If Not headerRange Is Nothing And checkHeaderRowValues Then
getHeaderRangeAddress = getHeaderRange.Address( _
RowAbsolute:=False, ColumnAbsolute:=False _
)
Expand Down
Binary file modified src/UFExporter.frx
Binary file not shown.

0 comments on commit b8aa429

Please sign in to comment.