Hello,
Is it possible to have code that will fill the Update Transactions sheet from the Transactions sheet with the selected year in cell B3 but do not include columns D and E so that these can be manually entered?
Thank you very much
Hello,
Is it possible to have code that will fill the Update Transactions sheet from the Transactions sheet with the selected year in cell B3 but do not include columns D and E so that these can be manually entered?
Thank you very much
According to your attachment a VBA demonstration for starters to paste to the Update Transactions worksheet module :
PHP Code:
Sub Demo1()
Dim L&
L = [N(B3)]
Application.ScreenUpdating = False
With [B6].ListObject
If .ListRows.Count Then .DataBodyRange.Clear
With Sheet3.ListObjects(1).Range.Rows
.AutoFilter 1, ">=1/1/" & L, xlAnd, "<=12/31/" & L
L = Application.Subtotal(103, .Columns(1))
If L > 1 Then .Range("A2:B" & .Count).Copy [B7]: .Range("E2:F" & .Count).Copy [F7] Else Beep: L = 2
End With
.Resize .Range.Resize(L)
End With
Application.ScreenUpdating = True
End Sub
► Do you like it ? ► ► So thanks to click on bottom left star icon « ★ Add Reputation » ! ◄ ◄
Last edited by Marc L; 09-10-2021 at 09:09 AM. Reason: simplication …
This code clears columns D and E which I need to input the Categories and Subcategories please.
Last edited by BillySpivy; 09-12-2021 at 09:46 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks