采用Excel朗读功能的朗读器:
注意:需要引用 Microsoft Excel xx.x Object Library
Function MySpeak_Excel(strSpeak As String) As Boolean
On Error GoTo Err_MySpeak_Excel
Dim objEx As New Excel.Application
If IsNull(strSpeak) Then Exit Function
objEx.Speech.Speak strSpeak
MySpeak_Excel = True
Set objEx = Nothing
Exit_MySpeak_Excel:
Exit Function
Err_MySpeak_Excel:
MySpeak_Excel = False
Set objEx = Nothing
MsgBox Err.Description, 64, "fan0217"
Resume Exit_MySpeak_Excel
End Function
[此贴子已经被作者于2006-5-29 18:37:59编辑过]
|