Interactive Cancel Error
I am an inexperienced user trying to do some automation with macros. I get an error if Cancel is selected on the Interactive Pop Up. It works fine as just a Macro but if I put it in an App it errors out.
Thanks,
Dave K.

Thanks,
Dave K.

0
Answers
-
Hello Dave,
In your App, you have to use a Try/Catch block to handle the exception.
PierrePublic Sub button1_Click(sender As Object, e As System.EventArgs) Handles button1.Click Try TestInteractionMacro Catch 'user clicked Cancel, exit macro Exit All Finally End Try End Sub
0 -
Merci Pierre!
Dave K.0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions