+ Reply to Thread
Results 1 to 2 of 2

Transliteration to English

  1. #1
    Registered User
    Join Date
    06-24-2014
    Location
    Riyadh, KSA
    MS-Off Ver
    2007
    Posts
    9

    Transliteration to English

    Hi All,

    I am new to VBA. I want to convert all the arabic letters into English (ie. Translitertaion) Not translation. I have found the below sample code in google and I have just tested but it is not working

    Const cyr = "123456789" 'the cyillic alphabet in order
    Const lat = "abcdefghi" 'the latin alphabet in the same order

    Function convertchar(inchar As String) As String
    Location = InStr(cyr, inchar)
    if location > 0 then convertchar = Mid(lat, Location, 1) else convertchar = " "
    'this will return the appropriate latin letter or a space if there is a problem
    End Function

    Sub convertcells()

    x = 1
    Do While ActiveSheet.Cells(x, 1).Value <> ""
    thisone = ActiveSheet.Cells(x, 1)
    out = ""
    For y = 1 To Len(thisone)
    out = out & convertchar(Mid(thisone, y, 1))
    Next
    ActiveSheet.Cells(x, 2) = out
    x = x + 1
    Loop
    End Sub


    If I type any number in cell A1 and run the above convertcells, it is not converting to latin. Could you please help me.

    If possible if you have sample code from Arabic to English, pls share.

  2. #2
    Registered User
    Join Date
    06-24-2014
    Location
    Riyadh, KSA
    MS-Off Ver
    2007
    Posts
    9

    Re: Transliteration to English

    Hi All,

    I want to convert all the arabic letters into English (ie. Translitertaion) Not translation. I have found the below sample code in google and its working fine now.

    Please Login or Register  to view this content.
    In Arabic, the letter ث transliterated to "TH" and خ to "KH" like this there are so many letters are available.
    If I use the above function I cant achieve this as Number 1 is transliterated to "A"(Single Character). I want to know how can I achieve this.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] What does Sine Qua Non Mean in English?
    By alyssabenjamin in forum Non English Excel
    Replies: 4
    Last Post: 04-03-2013, 06:31 AM
  2. English to English Dictionary in MS Excel format
    By waqaszhr in forum Excel General
    Replies: 0
    Last Post: 12-03-2012, 03:19 PM
  3. from spanish to english
    By SirArthur_ in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 08-20-2012, 01:18 PM
  4. Write English Formulas in non-english Excel
    By ChrisNor in forum Excel General
    Replies: 5
    Last Post: 03-09-2009, 08:40 AM
  5. Quick English to VBA
    By Trintrin in forum Excel General
    Replies: 2
    Last Post: 03-27-2006, 03:01 PM

Tags for this Thread

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