Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default LTrim imported text

I imported text and need to Ltrim all the cells in a given row. How do
I do this?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default LTrim imported text

Hi there,

You could use a simple loop for this. Here is an example ...

Sub DeleteAllLeadingSpacesPlease()
Dim c as Range
For each c in Range("A1:Z1")
c.Value = Ltrim(c.Value)
Next c
End Sub

Change the range to suit.

HTH

--
Regards,
Zack Barresse, aka firefytr
To email, remove NOSPAM


"lookin" wrote in message
oups.com...
I imported text and need to Ltrim all the cells in a given row. How do
I do this?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default LTrim imported text

Thank you! It worked perfect!

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
Help With Query Web & Imported Text Blackmore Excel Discussion (Misc queries) 0 August 13th 05 01:11 PM
I can't seem to use RTRIM or LTRIM in Excel 2002. I want to trim. Pam New Users to Excel 3 December 2nd 04 12:08 AM
LTRIM Problem mtsark Excel Programming 3 August 20th 04 10:45 PM
How do I apply LTRIM to entire Sheet? D[_6_] Excel Programming 2 August 11th 04 11:04 AM
LTrim Dave B[_3_] Excel Programming 1 July 18th 03 07:40 AM


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