When I tested, I found that when I hit 'Cancel' CopyFilePB returned a value of '1223.' Change your code like this...

code:
$rc=$frm1.CopyFilePB("c:\Documents and Settings\@userid\My Documents\*.doc","H:\My Documents",0,1) 

if $rc=1223
? "User hit cancel..."
endif