It seemed to work on the example I tried. I'd guess maybe the issue is with the c variable. What is the value of application.caller, does activeshape(c) refer to something sensible?

Might be helpful if you could upload an example workbook.