I showed the code I used in post #17 and for Ofc2021, it does not create an Excel session.
Code:
Option Compare Database
Option Explicit
Private Sub VoxTalk(Msg As String, Optional Gender As String = "Male")
Dim Vox As Object
Set Vox.Voice = Vox.GetVoices("Gender = " & Gender).Item(0)
Vox.Speak Msg
End Sub
Sub test()
VoxTalk "hello"
End Sub
With or without a reference to Excel, it does not work for me using Ac2021 or Ac2016. I only removed the toggle variable.