Make sure you have the required "References"? Click Tools => References
If not, you may try this question in microsoft.public.excel.programming newsgroup.
--
Regards,
Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting
http://www.winhelponline.com
"SlicerRod" <> wrote in message news:C6BABDA9-B4CB-463F-AAA4-...
I'm running Office 2003 SP3 on Vista using spreadsheets that I've created
under previous versions of Windows. I'm not a VBA programmer, but I've
managed to do enough coding through trial and error to be quite useful.
Whenever I enter a routine that has a function (ie, UCase$) in it, Excel
under Vista comes back with "Compile Error: Can't find project or library."
If I look through the object browser, UCase$ is there under "all libraries".
Do I have to declare that function somehow? Do I have to include the
library somehow? Again, all this code worked OK under XP.
Thanks in advance for your help.