I'd like to change the date format when copying data to another sheet. currently the format is **.**.** but need to change it to **/**/**. I've tried the obvious formatting the destination cells to the required format but I get #VALUE!
I have the code, but get an Error 400
Any help appreciated, thanks
I have the code, but get an Error 400
VBA Code:
'copy overtime sunday
With Sheets("ABACUS")
WKend = .Range("M2").Value2
arr = .Range("AI21:AI33").Value
End With
With Sheets("OVERTIME")
' last used row in column B plus 1
writerow = .Range("A" & .Rows.Count).End(xlUp).Row + 1
.Range("A2") = Format(Date, "dd/mm/yy")
.Range("A" & writerow) = WKend
.Range("B" & writerow).Resize(, UBound(arr)).Value = Application.Transpose(arr)
End With
Any help appreciated, thanks
Last edited by a moderator: