Guinaba
Board Regular
- Joined
- Sep 19, 2018
- Messages
- 217
- Office Version
- 2016
- Platform
- Windows
Hi guys,
I have the following code that I'd like to run when my table is refreshed using PowerQuery, but not sure how to use it within the event. Any suggestion?
I have the following code that I'd like to run when my table is refreshed using PowerQuery, but not sure how to use it within the event. Any suggestion?
VBA Code:
Private Sub Worksheet_TableUpdate(ByVal Target As TableObject)
Dim wrksht4 As Worksheet
Dim i As Integer
Set wrksht4 = ActiveWorkbook.Worksheets("EDPlannedOrders")
With wrksht4
'Find the last non-blank cell in column A(1)
LRow = .Cells(Rows.Count, 9).End(xlUp).Row
i = LRow
.Cells(LRow + 1, 9) = Format(Date, "YYYY/MM/DD")
.Cells(LRow + 1, 10) = .Cells(1, 6).Value
End With
End Sub