I created a custom UI in excel 2007 as a part of xlam add-in. The custom tab includes a button that opens a website when clicked.
I used ThisWorkbook.followHyperlink "address"
The add-in is password protected which causes excel to crash whenever i click on the button while in xlam add-in. Everything works fine when I use it in an .xlsm file.
I think the problem is in the ThisWorkbook
being password protected. I could use ActiveWorkbook
instead but the app would crash when there is no workbook open.
Any suggestions how I could work around this? (Unprotecting the file is not an option)
ThisWorkbook
intoActiveWorkbook
according to what you said. You could show part of your code to get additional information... – Kazimierz Jawor