evenyougreg
New Member
- Joined
- Oct 1, 2020
- Messages
- 26
- Office Version
- 365
- Platform
- Windows
I'm trying to get this formula to run from D2 until the last detected row, and without using hard coded numbers like D2 until D1243 or whatever because the dataset changes all the time. I've had issues in the past with this on another forum so I will try my luck here.
the formula is
and the VBA code I have only populates D2, but would like it to run until the last row...
Any thoughts?
the formula is
Excel Formula:
=XLOOKUP(INDIRECT("A2:A" & COUNTA(A:A)),VMs!A:A,VMs!B:B,"Not Found")
and the VBA code I have only populates D2, but would like it to run until the last row...
VBA Code:
Range("D2").Formula = "=XLOOKUP(INDIRECT(""A2:A"" & COUNTA(A:A)),VMs!A:A,VMs!B:B,""Not Found"")"
Any thoughts?