G
Guest
Hi,
I have a column with Email addresses like:
Email <[email protected]>
Email <[email protected]>
nbsp Please send written requests to <sjohnson@usaid>
TO <[email protected].>
(e-mail address removed)
I nee to trim them on both sides so I will have only Email address and
nothing else.
I used this:
Sub trimcells()
For Each cel In Selection
cel.Value = Trim(Right(cel, Len(cel)">"), Left(cel, Len(cel)"<"))
Next cel
End Sub
It doesn't work.
I will appreciate any help.
Thank you.
Oxana.
I have a column with Email addresses like:
Email <[email protected]>
Email <[email protected]>
nbsp Please send written requests to <sjohnson@usaid>
TO <[email protected].>
(e-mail address removed)
I nee to trim them on both sides so I will have only Email address and
nothing else.
I used this:
Sub trimcells()
For Each cel In Selection
cel.Value = Trim(Right(cel, Len(cel)">"), Left(cel, Len(cel)"<"))
Next cel
End Sub
It doesn't work.
I will appreciate any help.
Thank you.
Oxana.