Jon von der Heyden
MrExcel MVP, Moderator
- Joined
- Apr 6, 2004
- Messages
- 10,912
- Office Version
- 365
- Platform
- Windows
Hi,
I know the basics of msgbox, but I want to add a yes/no button. I have the following code:
I would like to give the user the option to install it (Yes/No in msgbox).
Thanks,
Noj
I know the basics of msgbox, but I want to add a yes/no button. I have the following code:
Code:
Private Sub Workbook_Open()
If AddIns("Analysis Toolpak").Installed = False Then
MsgBox ("This model cannot function without Analysis Toolpak installed. Excel will now install Analysis Toolpak. Call IT Help Desk if this fails to install properly.")
AddIns("Analysis Toolpak").Installed = True
Calculate
End If
End Sub
I would like to give the user the option to install it (Yes/No in msgbox).
Thanks,
Noj
