It's possible that the issue you're experiencing with VBA intermittently making mistakes may be related to changes in how Windows 11 interacts with Excel 2019 or changes in the VBA environment itself. Here are a few steps you can take to try to resolve the issue:
- Ensure that your version of Excel is up to date: Make sure that you have installed all the latest updates for Excel 2019. Microsoft regularly releases updates to address issues and improve compatibility with newer operating systems.
- Check for compatibility issues: Some older VBA code may not be fully compatible with newer versions of Excel or Windows. Consider checking your VBA code against Microsoft's VBA Compatibility List to ensure that it is compatible with your current setup.
- Try running Excel in compatibility mode: If you suspect that compatibility issues may be causing your problems, try running Excel in compatibility mode. Right-click on the Excel shortcut and select Properties, then select the Compatibility tab and choose a previous version of Windows.
- Consider using a virtual machine: If all else fails, you may want to consider running Excel within a virtual machine. This can help ensure that your code runs in a stable environment that is not affected by changes in the host operating system.
Overall, the most likely cause of your issue is changes in how VBA interacts with Windows 11 or Excel 2019. By ensuring that your software is up to date and checking for compatibility issues, you may be able to resolve the issue.
Regards
John
CEO
Mobiles In BD