Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reversing text in Cell

Status
Not open for further replies.

Mantle51

Programmer
Aug 17, 2006
97
US
Is there an easy way to reverse 2 text elements in a cell?

Basically, last first need to read first last

Thanks.....Mickey
 



Hi,

How do you distingusih between the first and last? Delimited by a SPACE?

Are there ALWAYS only two words?

Probably like this
Code:
with Cells(lrow, icol)
   a=split(.value," ")
   .value = a(ubound(a)) & " " & a(0)
end with




Skip,

[glasses] [red][/red]
[tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top