Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > VBA Function not recognized in Excel

Reply
Thread Tools Display Modes

VBA Function not recognized in Excel

 
 
SlicerRod
Guest
Posts: n/a

 
      01-04-2008
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.

 
Reply With Quote
 
 
 
 
Ramesh, MS-MVP
Guest
Posts: n/a

 
      01-04-2008
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.

 
Reply With Quote
 
Andre Da Costa[ActiveWin]
Guest
Posts: n/a

 
      01-04-2008
Microsoft Excel issues:
microsoft.public.excel
--
Andre
Blog: http://adacosta.spaces.live.com
My Vista Quickstart Guide:
http://adacosta.spaces.live.com/blog...3DB!9709.entry
"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.



 
Reply With Quote
 
SlicerRod
Guest
Posts: n/a

 
      01-04-2008
I checked the Excel newsgroup and found the solution in the previous
response. Under references, there was a MISSING item that was checked. I
unchecked it and it started working. The missing item is no longer there,
but it had something to do with time. Why would that affect a character
function?

Thanks to both of you for your quick responses.

"Andre Da Costa[ActiveWin]" <> wrote in message
news:#...
> Microsoft Excel issues:
> microsoft.public.excel
> --
> Andre
> Blog: http://adacosta.spaces.live.com
> My Vista Quickstart Guide:
> http://adacosta.spaces.live.com/blog...3DB!9709.entry
> "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.

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Word&Excel:Add-Edit Toolbar&Buttons:Autocorrect to Excel Toolbar!! Wayne4Js Windows Vista General Discussion 7 05-12-2008 05:41 AM
How to view Excel document without Microsoft Office Excel installe jl Windows Vista General Discussion 12 04-21-2008 04:53 AM
Excel IF Function Help IHateComputers Windows Vista General Discussion 2 03-06-2008 08:54 PM
Excel function fikko Windows Vista General Discussion 3 02-17-2008 10:39 PM
Excel 2007 wil not open and Excel 2007 document in Vista? lethag Windows Vista General Discussion 0 04-26-2007 08:34 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59