Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I want to prevent users double-clicking to load my add-in. I would like a warning to appear telling them how to install it properly. I can detect whether Workbook_AddinInstall() has executed (code below), which is great EXCEPT: When the user opens excel with the add-in already installed, it does not execute again, and my warning comes up. Any ideas? Thanks Rich Option Explicit Dim AddInLoad As Boolean Private Sub Workbook_AddinInstall() AddInLoad = True End Sub Private Sub Workbook_Open() If AddInLoad Then If ThisWorkbook.IsAddin Then MsgBox "add In - all cool" Else MsgBox "Not really sure if this is possible" End If Else If ThisWorkbook.IsAddin Then MsgBox "addin loaded badly, warning and exit" Else MsgBox "Spreadsheet only" End If End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Display sheet from loaded Addin | Excel Programming | |||
Addin opened but not loaded | Excel Programming | |||
XLL addin not loaded! | Excel Programming | |||
Addin loaded but Macro not shown | Excel Programming | |||
How can I ensure a message to the computer user is aknowledged? | Excel Programming |