wrote :: 2006.01.17
Sub Sample1()
Range("A1:A4").Speak
End Sub
Sub Sample2()
Application.Speech.Speak Range("A1")
End Sub
Sub Sample3()
Application.Speech.Speak "電子メールを受信しました"
End Sub
Sub Sample4()
Dim buf As String
Open "C:\Sample.txt" For Input As #1
Do Until EOF(1)
Line Input #1, buf
Application.Speech.Speak buf
Loop
Close #1
End Sub
Sub Sample5()
''普通のテキストとして読み上げる
Application.Speech.Speak Text:="<font color=BLACK>電子メールを受信しました</font>", _
SpeakXML:=False
''タグを無視して読み上げる
Application.Speech.Speak Text:="<font color=BLACK>電子メールを受信しました</font>", _
SpeakXML:=True
End Sub