EXCEL中直接把中文轉(zhuǎn)換成拼音全拼_第1頁
EXCEL中直接把中文轉(zhuǎn)換成拼音全拼_第2頁
EXCEL中直接把中文轉(zhuǎn)換成拼音全拼_第3頁
EXCEL中直接把中文轉(zhuǎn)換成拼音全拼_第4頁
全文預(yù)覽已結(jié)束

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、1第一種方法:打開Excel-江具-宏-Viaual Basic編輯器在彈出來的窗口中對著 VBAproject點(diǎn)右鍵-插入-模塊F面會出現(xiàn)一個(gè)名為"模塊1",點(diǎn)擊在右邊的空白欄中粘貼以下內(nèi)容:Fun cti on get pychar(char) tmp = 65536 + Asc(char)If (tmp >= 45217 And tmp <= 45252) Then get pychar = "A"ElseIf (tmp >= 45253 And tmp <= 45760) Then get pychar = "B

2、"ElseIf (tmp >= 45761 And tmp <= 46317) Then get pychar = "C"ElseIf (tmp >= 46318 And tmp <= 46825) Then get pychar = "D"ElseIf (tmp >= 46826 And tmp <= 47009) Then get pychar = "E"ElseIf (tmp >= 47010 And tmp <= 47296) Then get pychar = &qu

3、ot;F"ElseIf (tmp >= 47297 And tmp <= 47613) Then get pychar = "G"ElseIf (tmp >= 47614 And tmp <= 48118) Then get pychar = "H"Elself (tmp >= 48119 And tmp <= 49061) Then get pychar = "J"Elself (tmp >= 49062 And tmp <= 49323) Then get pychar =

4、 "K"Elself (tmp >= 49324 And tmp <= 49895) Then get pychar = "L"Elself (tmp >= 49896 And tmp <= 50370) Then get pychar = "M"Elself (tmp >= 50371 And tmp <= 50613) Then get pychar = "N"Elself (tmp >= 50614 And tmp <= 50621) Then get pych

5、ar = "O"Elself (tmp >= 50622 And tmp <= 50905) Then get pychar = "P"Elself (tmp >= 50906 And tmp <= 51386) Then get pychar = "Q"Elself (tmp >= 51387 And tmp <= 51445) Then get pychar = "R"Elself (tmp >= 51446 And tmp <= 52217) Then get

6、pychar = "S"Elself (tmp >= 52218 And tmp <= 52697) Then get pychar = "T"Elself (tmp >= 52698 And tmp <= 52979) Then get pychar = "W"Elself (tmp >= 52980 And tmp <= 53640) Then get pychar = "X"Elself (tmp >= 53689 And tmp <= 54480) Then

7、get pychar = "Y"Elself (tmp >= 54481 And tmp <= 62289) Then get pychar = "Z"Else如果不是中文,則不處理 get pychar = charEnd IfEnd Fun cti onFun cti on get py (str)For i = 1 To Len( str) get py = get py & get pychar(Mid(str, i, 1)Next iEnd Fun cti on現(xiàn)在轉(zhuǎn)換函數(shù)已編寫完成!關(guān)掉此編緝的窗口。要在Excel中使用,方法如下:A1A2中國=get py(A1)2.第二種方法更簡單些,但只能轉(zhuǎn)單個(gè)字: =IF(LEN(A1)>0,LOOKU P(CODE(A1),45217+0,36,544,1101,1609,1793,2080,2560,2902 ,3845,4107,4679,5154,5397,5405,5689,6170,6229,7001,7481,7763,8472,9264,"A","BTC","DTETFTGTH","JTKTLTM"

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論