I have the following code which works with Windows 7 but not in Windows 10, it highlights "Date" as the error.

Format(Date, "dd-mm-yy")
I have added "dd-mm-yy" to the Regonal Settings but it still does not work!
Any help would be appreciated, thanks Sandy.