VBA code that you can use to use text-to-speech in Excel.
VBA Code:
Sub TextToSpeech()
Dim speech As Object
Dim textToSpeak As String
' Create a new speech object
Set speech = CreateObject("SAPI.SpVoice")
' Get the text to speak
textToSpeak = Range("A1").Value ' Change the cell reference as desired
' Speak the text
speech.Speak textToSpeak
End Sub