Excel 2007 does not return shape data using XLL xlfGetDocument command
XLL add-ins using the xlfGetDocument command to obtain shape data may fail in Excel 2007 because a known problem in that version. The bug is being investigated for a fix in a future Excel release.
See the following post for more details:
Excel 2007 does not return shape data using XLL xlfGetDocument command