Try This,
x=createobject("excel.application")
x.workbooks.open("C:\EX\CONT\Prod200007.xls",0)
Fox doesn't let you assign values to variables in an 'inLine' manner like the VBA code you cut and pasted there. When you translate to VFP, you have to take out the variable names (or assign the proper values to variables beforehand), and then separate your parameters by commas. Hope this smooths things out.
Paul A. Busbey
Victoria Insurance