Speech facility

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

There is a speech facility in Excel which is great for my work but I would
like to have it where Excel uses the speech facility on opening a
workbook....sort of a welcome and basic instruction as soon as the file is
opened.

Is this possible??

Jon
 
You could use a macro:

Option Explicit
Sub auto_open()
Dim myStr As String

Select Case Time
Case Is <= TimeSerial(12, 0, 0)
myStr = "Good Morning"
Case Is <= TimeSerial(18, 0, 0)
myStr = "Good Afternoon"
Case Else
myStr = "Good Evening"
End Select

With Application
.Speech.Speak Text:=myStr & " " & .UserName
End With

End Sub
 
Really excellent - thanks Dave!

Dave Peterson said:
You could use a macro:

Option Explicit
Sub auto_open()
Dim myStr As String

Select Case Time
Case Is <= TimeSerial(12, 0, 0)
myStr = "Good Morning"
Case Is <= TimeSerial(18, 0, 0)
myStr = "Good Afternoon"
Case Else
myStr = "Good Evening"
End Select

With Application
.Speech.Speak Text:=myStr & " " & .UserName
End With

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top