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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User Defined Function

Status
Not open for further replies.

JohnAcc

Technical User
Aug 13, 2003
143
GB
Hi There:

I need a udf to reverse the contents of a cell. i.e if cell A1 = Today then i need a udf to return yadot.

I can't seem to figure out how to write this code.

any ideas?

Rgds, John

 
I think I've found my solution:

Function LtoR(Data)
Chars = Len(Data)
For i = Chars To 1 Step -1
Text = Text + Mid(Data, i, 1)
Next
LtoR = Text
End Function

I'm not sure if this is the most efficient way to do this but it works !

Rgds, John






 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top