Convert Arabic To Thai On MSWord and MSExcel

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

MS Word/MS Excel 2007/2010

www.itmanage.info



Macro MS Word/Excel Excel Macro
Excel
MS Word
1. MS Word 2010/2007 View Macros View Macros

2. Macro name Macros in Normal.dotm (global template)


Create

3.

4.
Sub arabic_to_thai()
For i = 0 To 9
With Selection.Find
.Text = Chr(48 + i)
.Replacement.Text = Chr(240 + i)
.Wrap = wdFindContinue
End With
Selection.Find.Execute Replace:=wdReplaceAll
Next
End Sub

5. Word

6. View ,
Macros, View Macros, Macro Run

7.

8. Macro
9. Macro
Sub thaitoarabic()
For i = 0 To 9
With Selection.Find
.Text = Chr(240 + i)
.Replacement.Text = Chr(48 + i)
.Wrap = wdFindContinue
End With
Selection.Find.Execute Replace:=wdReplaceAll
Next
End Sub

10. Macro

Macro MS Excel
1. Excel View, Macros, View macros Macro
arbictothai Create

2.
Sub arabictothai()
For i = 0 To 9
Cells.Replace What:=Chr(48 + i), Replacement:=Chr(240 + i)
Next
End Sub

3.

4.

5. View, Macros, View Macros, Macro


Run

6. Unfortunately, Excel, Macro


Excel

Excel (Format cell)


1. Excel
copy
[$-D07041E]t#,##0.00
[ ]
2.
**
3. (Format Cells)

4. Number Custom

5. copy Type Ok

6. Cell Enter

You might also like