Skip to content

Commit fbc872d

Browse files
committed
DisplayRunner bugfix
1 parent 857a1ab commit fbc872d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DisplayRunner.bas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,9 @@ Private Sub ClearOutput()
213213
PrevUpdating = Application.ScreenUpdating
214214
Application.ScreenUpdating = False
215215

216+
EndRow = NewOutputRow
216217
If EndRow >= OutputStartRow Then
217-
Sheet.Range(Cells(OutputStartRow, IdCol), Cells(NewOutputRow, ResultCol)).ClearContents
218+
Sheet.Range(Cells(OutputStartRow, IdCol), Cells(EndRow, ResultCol)).ClearContents
218219
End If
219220

220221
Application.ScreenUpdating = PrevUpdating

0 commit comments

Comments
 (0)