WalkerEvans
Technical User
There is something wrong with this code, but I can't seem to find it.
The entire thing works fine if I just run the code for the message box, but when I try to set it up to auto-run on Event_Open it fails. There is something (probably embarrassingly obvious) wrong, but at this point I just can't see it.
Any assistance will be gratefully accepted.
----------------------------------------------------------------------------------
"A committee is a life form with six or more legs and no brain." -- L. Long
Code:
Private Sub Workbook_Open()
Dim Msg, Style, Title, Response
Msg = "Is this an Interest bearing debt?"
Style = vbYesNo + vbInformation + vbDefaultButton2
Title = "CHOOSE TYPE of DEBT - Interest/No Interest"
Response = MsgBox(Msg, Style, Title)
If Response = vbYes Then
Call Interest
Else
Call NoInterest
End If
End Sub
The entire thing works fine if I just run the code for the message box, but when I try to set it up to auto-run on Event_Open it fails. There is something (probably embarrassingly obvious) wrong, but at this point I just can't see it.
Any assistance will be gratefully accepted.
----------------------------------------------------------------------------------
"A committee is a life form with six or more legs and no brain." -- L. Long