Thread
:
Application.left VBA
View Single Post
#
4
Posted to microsoft.public.excel.misc
Don Guillett
external usenet poster
Posts: 10,124
Application.left VBA
If? you are saying you want the right, then have a look at RIGHT and LEN
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"Jeff" wrote in message
...
What I need is to put the value c in column F after "left" and "trim".
"Jeff" wrote:
Can somenone help fixing the VBA macro?
Sub trimit()
Dim rng As Range
Set target = Range("A2:H" & Range("A2").End(xlDown).Row)
Set rng1 = Range("F2:H" & Range("F2").End(xlDown).Row)
For Each cell In target
cell.Value = Trim(Application.Left(Range("target")), 10, 0
Range("rng1") = cell.Value
Next
End Sub
Reply With Quote
Don Guillett
View Public Profile
Find all posts by Don Guillett