Solidworks macro diction / Speech speak

Hello

Does anyone know how to use the Microsoft Speech Object Library function via macro as in excel, in Solidworks

In Excel you just have to do

Tools / Reference / Microsoft Speech Object Library

sub test()

Application.Speech.Speak "SUPER"

end sub

 

only it doesn't work with Solidworks for me, do you have a tip on this subject

Macro stops on function: Runtime Error 438

'Mettre la bonne référence

Dim sp As SpVoice
Set sp = New SpVoice
sp.Speak "super"

I finally found the solution

 

Hello

I'm curious to know what use you make of Microsoft Speech in SW,

Can you tell us more about it?

It serves me instead of an msgbox, it avoids clicking

I use it in a particular case of copying the file name for tracking plan revisions in an Excel table, if no copy (in case of error)  it talks to me instead of displaying a message that I have to close