+ Reply to Thread
Results 1 to 13 of 13

Reversing characters of cells

Hybrid View

  1. #1
    Alan
    Guest

    Re: Reversing characters of cells

    Can't think of a generic formula but you could use VBA. Position cursor
    over the cell you want to reverse and then run RunReverseData

    Sub RunReverseData()
    Dim CellAddress as string

    CellAddress = Activecell.Address
    Call ReverseData(CellAddress)
    End Sub

    Sub ReverseData(byval CellRef as string)
    Dim i as Integer
    Dim Data as string
    Dim ShouldBe as string

    ShouldBe=""
    Data = Range(CellRef).Value
    for i = 1 to Len(Data)
    ShouldBe=ShouldBe & Mid(Data,Len(Data) - (i-1),1)
    Next i
    Range(CellRef).Value = ShouldBe
    End Sub


  2. #2
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    thanks but I need formula. any guru... on this problem

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1