Excel

TheSmallman.com

an XL ideas Lab

Dashboards VBA
  • Home
  • Dashboards
    • Tips & Tricks
    • Charts
    • Modelling
    • Infographics
    • VBA
  • Shop Dashboards
    • Power Pivot a User Guide
    • Excel Dashboard Course
    • Advanced Dashboard Course
    • Financial Modelling Course
    • Excel VBA Course
  • Blog
  • About
Menu

Excel Dashboards VBA

Street Address
City, State, Zip
Phone Number
an XL ideas Lab

Your Custom Text Here

Excel Dashboards VBA

  • Home
  • Dashboards
  • Excel Tips
    • Tips & Tricks
    • Charts
    • Modelling
    • Infographics
    • VBA
  • Shop Dashboards
  • PowerPivot
    • Power Pivot a User Guide
  • Courses
    • Excel Dashboard Course
    • Advanced Dashboard Course
    • Financial Modelling Course
    • Excel VBA Course
  • Blog
  • About

Make Excel Speak

January 2, 2018 Marcus Small
Talk.JPG

Ever wondered  how to make Excel speak text out loud?  Well I was reading some cool posts on Ozgrid before Christmas and came across this bit of fun.  It is a tool which allows you to have a bit of a laugh with your work mates.  Enter your phrase in the cell provided and click the button next to it. Whatever you type in the cells will be spoken in a computerised voice.  The following is the gold to make it happen.

Option Explicit

Sub TalktoMe()
Dim txt As String

txt = [D11]
Application.Speech.Speak txt
End Sub

The cell D11 contains the text you wish spoken out loud.  The code should run when you press the button on the sheet. 

If you wish the code to run a bit more autonomously then add the code to a worksheet event.  The event could be if a particular group of cells is clicked on.  To make things easier I will name the cells D11 - 'Talk'.  The following would be put in the worksheet module where the code is to be run from.

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("Talk")) Is Nothing Then TalktoMe
End Sub

Or it could be when the worksheet  is clicked on.

Private Sub Worksheet_Activate()
   TalktoMe
End Sub

The following is an example file with two sheets which work on the premise above.

ExelTalk.xlsx

← Delete Blank and Zero Value Cells from ColumnsExcel - Too Many Different Cell Formats →

Featured Posts

Excel Dashboards: Tracking a Crisis

Excel Dashboards: Tracking a Crisis
April 14, 2020

Recent Posts

Populating an Excel Table from a Range of Cells with VBA

Populating an Excel Table from a Range of Cells with VBA June 12, 2025

Fuzzy Distribution with Randbetween

Fuzzy Distribution with Randbetween May 21, 2025

Add Minimum and Maximum for Chart in Cells

Add Minimum and Maximum for Chart in Cells March 12, 2025

Inflation Over Multiple Years in a Single Cell

Inflation Over Multiple Years in a Single Cell January 10, 2025

Hubspot Dashboard

Hubspot Dashboard October 3, 2024

Monthly Dashboard With Supporting Metrics

Monthly Dashboard With Supporting Metrics September 25, 2024

Excel Show Missing Sheet Tabs

Excel Show Missing Sheet Tabs July 29, 2024

Run Macro Overnight Automatically

Run Macro Overnight Automatically June 24, 2024

Split File into Parts and Save to Directory

Split File into Parts and Save to Directory April 20, 2024

Most Popular Author

Most Popular Author December 14, 2023

 

Follow US:

 
 

MarcusSmall@thesmallman.com

 

TheSmallman.com - Making your small systems hum...
© Copyright 2013-2024 theSmallman.com All Rights Reserved.