SW2010 example Move Bodies code breaks

When I try to use the code at 2010 SOLIDWORKS API Help - Move Bodies Example (VBA) it breaks for me at the line "swSelData.Mark = 1".  When I pasted it into the VBA editor there were a lot of line continues that didn't carry over and I fixed those, but I'm not sure is this is related.  Any thoughts?  Specifically it gives me an error 91, "Object variable or With block variable not set".

SolidworksApi macros