Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have the following code that loops through a certain range. For Each cel In ADINames cel.Value = Trim(cel.Value) Next cel Can this be done on the entire range at once, i.e, w/o looping? Thank you, -- ______ Regards, Greg |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If the range is a single column, you could try:
Selecting the range data|text to columns Fixed width and then click finish. If you need a macro, record it when you do it manually. Greg wrote: Hi, I have the following code that loops through a certain range. For Each cel In ADINames cel.Value = Trim(cel.Value) Next cel Can this be done on the entire range at once, i.e, w/o looping? Thank you, -- ______ Regards, Greg -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
When entering data into a range of cells, select the entire range. | Excel Discussion (Misc queries) | |||
Run Macro through an entire range | Excel Programming | |||
VBA Trim and Application.worksheetfunction.Trim | Excel Programming | |||
Reading Entire Range | Excel Programming | |||
how do i set an entire row or column to a range? | Excel Programming |