Microsoft Office Excel ® Kod Kılavuzu

Microsoft Office Excel® Code Guide

20 Mayıs 2009 Çarşamba

MS Office® Speech [1]


'UserForm1

'References Add; Microsoft Speech Object Library
'Path; C:\Program Files\Common Files\Microsoft Shared\Speech\Sapi.dll
'AddTools on UserForm1; Label1, TextBox1, Image1, Label2, CommandButton1

Option Explicit
Private WithEvents Seslendirme As SpVoice
Private Sub UserForm_Initialize()
    On Error Resume Next
    ThisWorkbook.VBProject.References.AddFromGuid "{C866CA3A-32F7-11D2-9602-00C04F8EE628}", 5, 4 'Add Sapi.dll
    Me.Caption = "[PBİD®] MS Office® Speech [1]"
    With TextBox1
        .AutoTab = True
        .Enabled = True
        .EnterKeyBehavior = True
        .Locked = False
        .MultiLine = True
        .ScrollBars = fmScrollBarsVertical
        .Text = "Mustafa ULUSARAÇ" & vbCrLf & "
01ulusarac@superonline.com" & vbCrLf & "[PBİD®] Speech..."
    End With
End Sub
Private Sub CommandButton1_Click()

    On Error Resume Next
    Set Seslendirme = New SpVoice
    Seslendirme.Speak TextBox1.Text
End Sub
'Sub References_List()
'    On Error Resume Next
'    Dim Eleman, No
'    No = 1
'    For Each Eleman In ThisWorkbook.VBProject.References
'        Sheets(1).Cells(No, 1) = No & ") Name: "
'        Sheets(1).Cells(No, 2) = Eleman.Name
'        Sheets(1).Cells(No, 3) = ", Description: "
'        Sheets(1).Cells(No, 4) = Eleman.Description
'        Sheets(1).Cells(No, 5) = ", FullPath: "
'        Sheets(1).Cells(No, 6) = Eleman.FullPath
'        Sheets(1).Cells(No, 7) = ", GUID: "
'        Sheets(1).Cells(No, 8) = Eleman.GUID
'        Sheets(1).Cells(No, 9) = ", Minor: "
'        Sheets(1).Cells(No, 10) = Eleman.minor
'        Sheets(1).Cells(No, 11) = ", Major: "
'        Sheets(1).Cells(No, 12) = Eleman.major
'        No = No + 1
'    Next Eleman
'End Sub

Hiç yorum yok:

Blog Arşivi

Bu gadget'ta bir hata oluştu

Bu Blogda Ara

Contributor

Contributor
Mustafa ULUSARAÇ İstanbul, TÜRKİYE
free counters
T. C. Central Bank Indicative Exchange Rates
Currency Exchange Rate Widget,Currency Converter Widget
Borsa İstanbul