Upload
lamkhanh
View
222
Download
0
Embed Size (px)
Citation preview
๑๒๓๔๕๖
หลังจากแก้ไข แมโครแล้ว
ไปท่ี quick manu
ไปท่ีคำาสัง่ เพิม่เติม
เปล่ียนรูปแบบ ได้ด้วย
For word
Sub Arabic2thai()For i = 0 To 9With Selection.Find.Text = Chr(48 + i).Replacement.Text = ChrW(3664 + i).Wrap = wdFindContinueEnd WithSelection.Find.Execute Replace:=wdReplaceAllNextEnd SubSub Thai2Arabic()For i = 0 To 9With Selection.Find.Text = ChrW(3664 + i).Replacement.Text = Chr(48 + i).Wrap = wdFindContinueEnd WithSelection.Find.Execute Replace:=wdReplaceAllNextEnd Sub
For excel
Sub Arabic2Thai()For i = 0 To 9Cells.Replace What:=Chr(48 + i), Replacement:=Chr(240 + i)NextEnd SubSub Thai2Arabic()For i = 0 To 9Cells.Replace What:=Chr(240 + i), Replacement:=Chr(48 + i)NextEnd Subหรอืกำาหนดรูปแบบขอ้มูลใหเ้ป็น t0 (ตัว T และ เลขศูนย ์0)