Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default trouble using functions from Strings library

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default trouble using functions from Strings library

Sounds like you have a MISSING library. Check in ToolsReferences 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)

"David" wrote in message
ups.com...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 163
Default trouble using functions from Strings library

Yes,

Sounds like you have a MISSING library. Check in ToolsReferences 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"



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default trouble using functions from Strings library

I think that this could be caused by any missing reference--not just to Visual
Basic for Applications.



Helmut Weber wrote:

Yes,

Sounds like you have a MISSING library. Check in ToolsReferences 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"


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default trouble using functions from Strings library

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)

"Dave Peterson" wrote in message
...
I think that this could be caused by any missing reference--not just to
Visual
Basic for Applications.



Helmut Weber wrote:

Yes,

Sounds like you have a MISSING library. Check in ToolsReferences 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"


--

Dave Peterson





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default trouble using functions from Strings library

The Strings library seems to be the canary in the coal mine, that fails when
any library isn't found.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Dave Peterson" wrote in message
...
I think that this could be caused by any missing reference--not just to
Visual
Basic for Applications.



Helmut Weber wrote:

Yes,

Sounds like you have a MISSING library. Check in ToolsReferences 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"


--

Dave Peterson



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 163
Default trouble using functions from Strings library

Hi Jon,

The Strings library seems to be the canary in the coal mine,
that fails when any library isn't found.


exactly, now I recall.

Helmut Weber

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default trouble using functions from Strings library

On Jun 4, 3:56 pm, "Bob Phillips" wrote:
Sounds like you have a MISSING library. Check in ToolsReferences 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)

"David" wrote in message

ups.com...

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 readStrings.Trim orStrings.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



Thanks -- very helpful.

  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default trouble using functions from Strings library

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)

"David" wrote in message
ups.com...
On Jun 4, 3:56 pm, "Bob Phillips" wrote:
Sounds like you have a MISSING library. Check in ToolsReferences 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)

"David" wrote in message

ups.com...

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 readStrings.Trim orStrings.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



Thanks -- very helpful.



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
C# Functions Library Bo Excel Programming 0 November 14th 06 11:34 PM
Calling functions from a xll library eLiNK[_2_] Excel Programming 0 December 8th 05 02:17 PM
Creating Add-in with library of functions Bryan[_10_] Excel Programming 7 August 17th 04 03:19 AM
Creating custom library of functions/macros sclark Excel Programming 2 January 23rd 04 10:21 PM
Newcomer to VBA; trouble with strings? reclusive monkey Excel Programming 2 September 22nd 03 04:47 PM


All times are GMT +1. The time now is 10:42 PM.

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

About Us

"It's about Microsoft Excel"