Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
LTrim imported text
I imported text and need to Ltrim all the cells in a given row. How do
I do this? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
LTrim imported text
Thank you! It worked perfect!
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Help With Query Web & Imported Text | Excel Discussion (Misc queries) | |||
I can't seem to use RTRIM or LTRIM in Excel 2002. I want to trim. | New Users to Excel | |||
LTRIM Problem | Excel Programming | |||
How do I apply LTRIM to entire Sheet? | Excel Programming | |||
LTrim | Excel Programming |