Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Visual Basic problem

when asking to set a variable example:
sit = ActiveSheet.name

We get a compile error that says:

Can't find library or project

What does this mean and how do we correct it. The project
and libary are there and available, but the variable will
not set.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 391
Default Visual Basic problem

First, at the top of the code module, have this line:

OPTION EXPLICIT

this will force you to explicitly dim variables

Next, its difficult without seeing your code but

Dim sit as String
sit = Activesheet.Name

Now often, when I see that error message its a bit of a
red herring in that a key word is often highlighted that
has no relevence to the issue....which may be that a
reference is missing. in teh IDE, select Tools/References
& check if any are flagged as Missing. If they are, then
you'll need to browse & re-select them.

Patrick Molloy
Microsoft Excel MVP

-----Original Message-----
when asking to set a variable example:
sit = ActiveSheet.name

We get a compile error that says:

Can't find library or project

What does this mean and how do we correct it. The

project
and libary are there and available, but the variable

will
not set.
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Visual Basic problem

make sure you have referenced the appropriate object model in your
project references.

for excel on windows 2000 micorsoft excel 9.0 object library

Woody
I am not responsible for anything you may see with my name attached to
it, i think.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Visual Basic problem

If I'm not mistaking, when you click Tools References in the VBE,
there is a checkbox that says MISSING next to it, which is checked. If
this is the case, uncheck that box and you should be fine.

Mark

---
Mark Bigelow
mjbigelow at hotmail dot com
http://hm.imperialoiltx.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing with Visual Basic Editor Problem Meader Excel Discussion (Misc queries) 3 May 30th 07 08:55 PM
changing the visual basic in office 2003 to visual studio net bigdaddy3 Excel Discussion (Misc queries) 1 September 13th 05 10:57 AM
Visual Basic Help Wizard/Index problem, can't get cursor HelpNeeded Excel Discussion (Misc queries) 3 March 4th 05 03:46 AM
Visual Basic Problem with Chr(34) Tom Ogilvy Excel Programming 0 August 6th 03 01:20 PM
Visual Basic Problem with Chr(34) Chip Pearson Excel Programming 0 August 6th 03 01:16 PM


All times are GMT +1. The time now is 07:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"