I have tried the below code and I cannot get it to work. I am using Excel 2019. I have tried on my project but also on a new spreadsheet with default configurations, sheet names and cell references as written in your original sample macro and I get the same vba 400 error.
When I run the macro...