Well, I didn't know you could do it with Code References tool in VFP8, since I still use VFP6; so I put together the response below. I still decided to post it, just in case it would help you or someone else.
=========
Before you start replacing, make sure that you don't have to do it ever again when company name changes again. Create a variable, or object with a property holding that name, or create a table and read from it. You can do so to some other hard-coded stuff while you are at it. Now you will need to replace your "XXXXX" not with "YYYYY", but with your variable/object.property name.
For your PRGs, you can probably create a simple algorithm that uses ADIR() function to get names of all the .PRG files from you directory into an array and loop through them. Inside the loop, you can back up each file, send it into a string with FileToStr() function, modify it using STRTRAN() function, and send back to the file with StrToFile() function.
If you also have it in the forms and classes, you probably can open your project file as a table (you can do the same for the tables, too) and SCAN it for the names; back up each, then open each as a table, too, and scan appropriate memo fields for the string in question, change them with STRTRAN() and replace back.
You can also take a look at faq184-4392. It writes all methods from all forms and classes included in the open project to a text file, but you can probably tweak the code to edit all methods of forms and classes instead.