I wrote a macro method to auto-size the columns in an Excel sheet upon opening the sheet. However, this solution does not work in the case that the user has not enabled macros in Excel.
Is there any way to check if the user has VBA macros disabled in Excel, and then enable the macros with Excel VBA code?
The standard way of doing this is to force the user to enable macros by use of a splash screen.
Two links with full code for this technique are listed below
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With