I have an Excel spreadsheet that uses the new XLOOKUP function. Despite a written warning on the main page, users keep trying to run the macros in older versions of Excel and they get weird results.
Is there a way to have the macro check for compatibility at the start of the script and give users a warning if they are using an older version of Excel? Essentially I want the macro to abort if the user is running anything other than Microsoft 365 or Excel 2021.
The Application.Version number approach won't work anymore because Microsoft stopped numbering at 16.