hi
I would showing data based on condition in COL L <= today but horizantal
so it should show like this when open file
ITEM ID CODE NO CLASSIFICATION QTY DATE
1 ID100 BSCD-1 SERVICE1 250 8/2/2021
2 ID104 BSCD-5 SERVICE 5 500 8/3/2021
3 ID108 BSCD-9 SERVICE9 50 8/8/2021
this is the current macro
Private Sub Workbook_Open()
Dim lstRow As Long
Dim i As Long
Dim msg As String
With Worksheets("SHEET1")
lstRow = .Range("A" & .Rows.Count).End(xlUp).Row
For i = 2 To lstRow
If .Range("L" & i) <= Today Then
msg = msg & .Range("B" & i) & vbCr & .Range("C" & i) & vbCr & .Range("D" & i) & vbCr & .Range("E" & i) & vbCr & .Range("l" & i) & vbCr
End If
Next i
End With
If Len(msg) > 0 Then
MsgBox "The recorded data are" & _
vbCrLf & msg, 64, "Notification"
End If
End Sub