1) Put this formula in E1 of Sheet1:
=IF(SUBTOTAL(109,A:A)>MAX(A:A),"",SUBTOTAL(109,A:A)+1)
2) Right-click the sheet1 tab and select VIEW CODE
3) Paste in the event macro:
Option Explicit
Private Sub Worksheet_Calculate()
If [E1] = "" Then
Sheets("Sheet2").Shapes(1).TextFrame.Characters.Text = ""
Else
With Range("A" & [E1])
Sheets("Sheet2").Shapes(1).TextFrame.Characters.Text = _
.Value & Chr(10) & .Offset(, 1).Value & Chr(10) & .Offset(, 2).Value
End With
End If
End Sub
4) Close the VBA editor and save your workbook as a .xlsm format so the macro will continue to work.
5) Now any changes the filter will update the text box on sheet2.
Bookmarks