Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the String$ function

Status
Not open for further replies.

Stretchwickster

Programmer
Apr 30, 2001
1,746
GB
I'm using the following portion of code which works fine on my Win2k Excel2k machine. However, when I take it to another Win2k Excel2k machine I get an "Can't find project or library" error message and it highlights the String$ function line:
Code:
  Dim MyPath As String

  MyPath = String$(255, vbNullChar)

Does anyone have any ideas on what is going wrong and how to solve it?

I assume it has something to do with a missing reference perhaps?

Your help would be much appreciated!


Clive [infinity]
Ex nihilo, nihil fit (Out of nothing, nothing comes)
 
Hi Clive,

This used to happen to me a lot. The first thing you need to do is go to Tools->References... to see if there are any references missing. If there are, then uncheck them.

If the reference is important to any of the macros in your application, then you need to find the right one that will work on all PC's.

My problem was that I was creating apps in Excel 2000 and delivering them to some of my users who were still using Office '97. This will always cause an error. But, since you are using Excel 2000 on boths PC's, I doubt that this is the same problem. You should still check to see if there are any "MISSING:" references.



Peace! [peace]

Mike

Never say Never!!!
Nothing is impossible!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top