TaskMaster
Board Regular
- Joined
- Oct 15, 2020
- Messages
- 75
- Office Version
- 365
- 2016
- Platform
- Windows
Hi all,
I have been trying to integrate some formulas into my VBA but struggling with the following sumif. In the data tab I have a list of dates in column T and the sum range is CB. I am wanting the total of the sumif in C2 of the movements tab where the date is before the current day. Thank you in advance
I have been trying to integrate some formulas into my VBA but struggling with the following sumif. In the data tab I have a list of dates in column T and the sum range is CB. I am wanting the total of the sumif in C2 of the movements tab where the date is before the current day. Thank you in advance
VBA Code:
Sheets("Movements").Range("C2") = WorksheetFunction.SumIf(Range('Data'!T:T), Range("<Format(Date, "dd/mm/yyyy")"), Range('Data'!CB:CB))