UnloadDVB rountine

UnloadDVB rountine

Anonymous
Not applicable
202 Views
2 Replies
Message 1 of 3

UnloadDVB rountine

Anonymous
Not applicable
I read the post for the best way to exit a VBA routine, but I came up short in my routine. I am running a macro (which has no forms) and would like it to unload itself when it is done. The routine works great except I get that "execution error" when the macro is done running. Is there a way to exit the routine without this error? Currently I am using UnloadDVB "C:\myroutine.dvb" to do the process. Thank you in advance for the assistance.
0 Likes
203 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Kent,

Try using

ThisDrawing.SendCommand "_vbaunload" & vbCr & "YourDVB.dvb" & vbCr

Regards,

James


"Kent_H" wrote in message
news:f08f32b.-1@WebX.maYIadrTaRb...
I read the post for the best way to exit a VBA routine, but I came up short
in my routine. I am running a macro (which has no forms) and would like it
to unload itself when it is done. The routine works great except I get that
"execution error" when the macro is done running. Is there a way to exit the
routine without this error? Currently I am using UnloadDVB
"C:\myroutine.dvb" to do the process. Thank you in advance for the
assistance.
0 Likes
Message 3 of 3

Anonymous
Not applicable
I have done this method in the passed, but I would like to exit this routine transparently.
0 Likes