Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50186

[SOLVED] End Sub when "cancel" is hit

$
0
0
i wrote a macro to open a local video file

but excel always pop out a warning message window saying"...may contain virus...would you like to open this file"

if i click ok, it properly opens the video, but when i click cancel, it mess up and i got a runtime error, is there a way to end sub when cancel is clicked?

Viewing all articles
Browse latest Browse all 50186

Trending Articles