Lost Xlb ,XLC function for macros

I am a 79yo ,with no tech knowledge & have been building a spreadsheet with the help of Copilot. Somehow I have caused script.xlb or script.xlc to no longer function.I have tried with Copilot help to get these working again but they seem to have disappeared from my computer. I was progressing very well with my spreadsheet which is really quite complicated . Now I do not know if I can save it or just give up. Any help will greatly appreciated. Thank You.