Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - VBA Function not recognized in Excel

Reply
 
Old 01-04-2008   #1 (permalink)
SlicerRod


 
 

VBA Function not recognized in Excel

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.


My System SpecsSystem Spec
Old 01-04-2008   #2 (permalink)
Ramesh, MS-MVP


 
 

Re: VBA Function not recognized in Excel

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" <nospam@xxxxxx> wrote in message news:C6BABDA9-B4CB-463F-AAA4-E37BB48B7B1F@xxxxxx
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.

My System SpecsSystem Spec
Old 01-04-2008   #3 (permalink)
Andre Da Costa[ActiveWin]


 
 

Re: VBA Function not recognized in Excel

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" <nospam@xxxxxx> wrote in message
news:C6BABDA9-B4CB-463F-AAA4-E37BB48B7B1F@xxxxxx
Quote:

> 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.

My System SpecsSystem Spec
Old 01-04-2008   #4 (permalink)
SlicerRod


 
 

Re: VBA Function not recognized in Excel

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]" <andred25@xxxxxx> wrote in message
news:#EnbXLtTIHA.5016@xxxxxx
Quote:

> 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" <nospam@xxxxxx> wrote in message
> news:C6BABDA9-B4CB-463F-AAA4-E37BB48B7B1F@xxxxxx
Quote:

>> 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.
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Re: Calling excel function VB Script
VBScript to search LDAP from Excel function? VB Script
Is there a write-multi-cell-at-once function in VBS for Excel? VB Script
Excel IF Function Help Vista General
Excel function Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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