trouble using functions from Strings library

  • Thread starter Thread starter David
  • Start date Start date
D

David

I wrote some VBA code with my excel sheet but when I run it on other
computers it does not work because it does not understand TRIM or MID.
If I change the code to read Strings.Trim or Strings.Mid then it runs.
What is wrong with the installation or setup on these machines that
Excel does not automatically recognize these standard VBA functions?

Thanks in advance,

David
 
Sounds like you have a MISSING library. Check in Tools>References in the
VBIDE and uncheck it if so.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Yes,
Sounds like you have a MISSING library. Check in Tools>References in the
VBIDE and uncheck it if so.

reference to VBA in particular.

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 
I think that this could be caused by any missing reference--not just to Visual
Basic for Applications.
 
In fact, seeing as VBA hasn't changed since 97, it is unlikely to be
missing.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
The Strings library seems to be the canary in the coal mine, that fails when
any library isn't found.

- Jon
 
Sounds like you have a MISSING library. Check in Tools>References in the
VBIDE and uncheck it if so.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)


Thanks -- very helpful.
 
Does that mean that you have solved the problem?

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top