Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default Trim like worksheet Trim

Otto,

UseReplace

Debug.Print Replace(" This is long word ", " ", "")


--

HTH

Bob Phillips

"Otto Moehrbach" wrote in message
...
Excel 2002, Win XP
The worksheet Trim function trims all the spaces, leading, trailing,

and
all but one space between words.
In VBA I have LTrim for leading spaces, RTrim for trailing spaces, and
Trim for both.
I realize that I can use the worksheet Trim function in VBA to do all
the spaces, but is there another way in VBA to get the same functionality

as
the worksheet Trim function?
Thanks for your help. Otto




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
TRIM Q Seanie Excel Worksheet Functions 3 November 17th 08 08:50 AM
=TRIM Shayra Excel Discussion (Misc queries) 5 October 16th 08 07:16 PM
Trim if? John Excel Worksheet Functions 6 June 26th 06 04:44 PM
Trim stapleton2308 Excel Discussion (Misc queries) 4 February 15th 06 06:09 PM
Trim Again ferdy New Users to Excel 5 May 12th 05 02:50 PM


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