Transit Invoice Sheet.xlsm | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
359 | 0.00 | ||||||||
360 | 091923 | Invoice | 091923 | 9/19/23 | 218.71 | ||||
361 | Payment | 0932 | 10/12/23 | -218.71 | |||||
362 | Payment | 0932V | 10/16/23 | 218.71 | |||||
363 | Payment | 21948 | 10/17/23 | -218.71 | |||||
364 | |||||||||
365 | 0.00 | ||||||||
Vendor Transaction History |
Transit Invoice Sheet.xlsm | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
553 | 89318JS23 | Invoice | 89318JS23 | 9/6/23 | 410.00 | ||||
554 | Payment | 1007 | 9/15/23 | -205.00 | |||||
555 | Payment | 0916 | 9/15/23 | -205.00 | |||||
Vendor Transaction History |
ThisWorkbook.Sheets("Vendor Transaction History").Activate
Dim rA As Range
Application.ScreenUpdating = False
For Each rA In Range("D2", Range("D" & Rows.Count).End(xlUp)).SpecialCells(xlConstants).Areas
With rA.Offset(, -3).Resize(, 2)
If IsEmpty(.Cells(1, 1).Value) Then .Value = .Offset(-3).Value
End With
rA.Offset(, -1).Resize(, 5).Sort Key1:=rA.Columns(1), Order1:=xlAscending, Header:=xlNo
Next rA
Application.ScreenUpdating = True
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
For Each rA In Range("D2", Range("D" & Rows.Count).End(xlUp)).SpecialCells(xlConstants).Areas
If IsEmpty(.Cells(1, 1).Value) Then .Value = .Offset(-3).Value
For Each rA In Range("D2", Range("D" & Rows.Count).End(xlUp)).SpecialCells(xlConstants).Areas
With rA.Offset(, -3).Resize(, 2)
MsgBox .Address
MsgBox .Offset(-3).Address
If IsEmpty(.Cells(1, 1).Value) Then .Value = .Offset(-3).Value
End With
rA.Offset(, -1).Resize(, 5).Sort Key1:=rA.Columns(1), Order1:=xlAscending, Header:=xlNo
Next rA
Application.ScreenUpdating = True
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual