LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default Trim, Len, Left causing problem

Kris,

I ran into the same problem myself. None of the requisite References were
Missing
and I eventually solved the problem by prefixing the Trim, Len, Left (and for
good measure Right and Mid) functions with the four characters "VBA." E.g., x
= VBA.Left(y,3), etc. To shorten the keystrokes as I develop programs, I
actually code this example as x = Lft(y,3) and then in a code module have:

Function Lft(StringVar As Variant, NCharacters As Long) As String
Lft = VBA.Left(StringVar, NCharacters)
End Function

-- Dennis Eisen
 
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
trim everything from left of first underscore in the text? Mitchell_Collen via OfficeKB.com Excel Worksheet Functions 4 July 28th 09 07:49 PM
TRIM, LEFT, RIGHT cware Excel Worksheet Functions 3 March 3rd 09 10:38 PM
Text Causing a Problem in Formula Peter[_8_] Excel Discussion (Misc queries) 7 December 18th 07 12:05 PM
left trim Finger Tips Excel Worksheet Functions 9 April 29th 07 02:40 AM
minus numbers causing a problem kevhatch New Users to Excel 14 June 30th 05 01:15 PM


All times are GMT +1. The time now is 08:24 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"