Good Afternoon my fellow programmers,
I am working on an add-in and i am calling a form from a module, however I want to hault execution of the module until after the form is displayed, receives input, and an OK button is clicked. The reason being, the form stuffs data into global variables which are then used after the form is closed. I then want to resume execution of where I left off from the module. I tried using VBModal, but it doesn't appear to be working. Am I using it incorrectly, or is it just not compatible with add-ins. If anyone knows of another way to accomplish this, I would appreciate any help.
Code:
If (ApplyToall = False) Then
'Display Error Option Form to allow user to select type of
'error handling routine to insert
frmErrorOption.Show vbModal
End If
***I want to resume here
If (ExitErrorHandling = True) Then
Exit Function
Else
' insert the custom error handling
AddErrorHandling True, ProcBodyStartLine, ProcBodyEndLine, ProcName, ProcType, ErrorHandlerType, ErrorOption
NextMemberLineStart = GetMemberInfo(TempStartLine)
End If