>I create word documents then want to -- say replace a string in the new .doc . I Build a macro that shows me the VB code. Try to convert the code to VFP. Then I get every manner of interface error codes.
Try this KB article
http://support.microsoft.com/support/kb/articles/Q160/0/64.asp. It's called "HOWTO: Convert VBA to FoxPro for OLE Automation." It does a good job of explaining the basics of converting a macro to VFP.
- della Martin