Mike's suggestion is correct.
But have you investigated how to do this yourself by doing the work manually in Excel as part of creating an Excel Worksheet Macro? If you had, you could have gone into that Macro and examined the VBA code and then converted it into VFP Automation code.
Good Luck,
JRB-Bldr