cablass
Technical User
- Jul 11, 2008
- 5
I have a mail merge procedure based on bookmarked templates. I have added an error routine:
On Error Goto cmdSendLetter_Click_Error
**Procedure**
Exit Sub
cmdSendLetter_Click_Error:
msgBox ("I'm sorry I have a headache right now" & Chr(13) _
"Please try again later, I may be feeling better")
End Sub
I have tried to run the procedure with a deliberate error: if I try to create another letter to the same client based on the same merged document, I get a msgBox that the document is locked for editing. My error routine is not bypassing this but jumping into debug. I'm sure I'm making a very basic (rookie!) error but would appreciate some advice.
Thanks in advance
Yvonne
On Error Goto cmdSendLetter_Click_Error
**Procedure**
Exit Sub
cmdSendLetter_Click_Error:
msgBox ("I'm sorry I have a headache right now" & Chr(13) _
"Please try again later, I may be feeling better")
End Sub
I have tried to run the procedure with a deliberate error: if I try to create another letter to the same client based on the same merged document, I get a msgBox that the document is locked for editing. My error routine is not bypassing this but jumping into debug. I'm sure I'm making a very basic (rookie!) error but would appreciate some advice.
Thanks in advance
Yvonne