I have the following code to extract the current month - 1 month as well as the year
I would like this amended to extract the last date and year from row 1 on sheet "Sales Summary"
for eg a1 oct 2017, B1 Nov 2017, C1 Dec 2017
As Dec 2017 is the last row in row 1 containing a date and year , I would like Dec 2017 in this example to be extracted . If the last date was Jan 2018, then Jan 2018 in tow 1 to be extracted
it would be appreciated if someone could kindly amend my code
Code:
.body = "Attached please find Sales Data by region as at " & Format(Month(Date) - 1 & " " & Year(Date), "mmm yyyy") & " vs the Prior Year" & vbNewLine & vbNewLine
I would like this amended to extract the last date and year from row 1 on sheet "Sales Summary"
for eg a1 oct 2017, B1 Nov 2017, C1 Dec 2017
As Dec 2017 is the last row in row 1 containing a date and year , I would like Dec 2017 in this example to be extracted . If the last date was Jan 2018, then Jan 2018 in tow 1 to be extracted
it would be appreciated if someone could kindly amend my code