Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2007

Tip: Looking for answers? Try searching our database.

a simple question that's frustrating me

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Charlie - 15 Feb 2007 20:38 GMT
All of a sudden, my VBA code isn't working and I've tracked it down to the
right() and Left() functions.  It's like VBA doesn't recognize these as
functions.
Here's a simple example that gives me an error:
Sub temp()
Dim stline As String
Debug.Print Right(stline, 1)

End Sub

It says 'Project or Library not found' and it highlights the word 'RIGHT'.
I've restarted my pc, but it didn't help.  I'm using word 2003, windows xp.  
This code used to run, and on this very same pc!
Please help,
thanks,
ck
Jonathan West - 15 Feb 2007 22:33 GMT
> All of a sudden, my VBA code isn't working and I've tracked it down to the
> right() and Left() functions.  It's like VBA doesn't recognize these as
[quoted text clipped - 10 lines]
> xp.
> This code used to run, and on this very same pc!

In the VBA editor, with the project open, go to Tools References. There will
probably be a reference set to a missing library. Either uncheck the
reference or fix it.

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.