+ Reply to Thread
Results 1 to 9 of 9

Speak - Speech - Speak numbers individually

  1. #1
    Forum Contributor
    Join Date
    02-26-2015
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    248

    Speak - Speech - Speak numbers individually

    Excel reads acronyms as words and numbers like 12,345 as 12 thousand, three hundred forty five. Is there a method or macro that allows the characters to be read individually.
    Thanks

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Speak - Speech - Speak numbers individually

    Hi BDD,

    I think you would need to break the number into multiple cells, where each cell contained a single digit. Then select the range of those cells and speak them.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    02-26-2015
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    248

    Re: Speak - Speech - Speak numbers individually

    Hi, Marvin

    Thanks for the reply but not an option unfortunately. I've seen a bunch of videos on Youtube and experimented myself. Sometimes it does and sometimes it doesn't. I need it to play nice and be consistent and read all numbers individually, all the time.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Speak - Speech - Speak numbers individually

    It looks like, if you put a space between each digit, it will speak them like you want. BUT that then makes the cell text and not a number.

    Put 1 2 3 4 5 in a single cell and speak it.

    Does that work for you?

  5. #5
    Forum Contributor
    Join Date
    02-26-2015
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    248

    Re: Speak - Speech - Speak numbers individually

    Its weirdly inconsistent. I've tried multiple things. Different length numbers. Same numbers, different cells. In two different cells the same number will be spoken each way. Try it. Lol
    I've even converted it to text. That didn't work either. I figure if it says it right in one place there's no reason that it shouldn't be able to say it right all the time.
    Right? Lol

  6. #6
    Forum Contributor
    Join Date
    02-26-2015
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    248

    Re: Speak - Speech - Speak numbers individually

    Its weirdly inconsistent. I've tried multiple things. Different length numbers. Same numbers, different cells. In two different cells the same number will be spoken each way. Try it. Lol
    I've even converted it to text. That didn't work either. I figure if it says it right in one place there's no reason that it shouldn't be able to say it right all the time.
    Right? Lol

  7. #7
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    Re: Speak - Speech - Speak numbers individually


  8. #8
    Forum Contributor
    Join Date
    02-26-2015
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    248

    Re: Speak - Speech - Speak numbers individually

    Thank you, Logit. But still the same issue when I ensure the numbers are formatted as Numbers and no seperator. I tried
    123
    12345 X
    123456 X
    1234567
    The numbers with the X weren't spoken as individual numbers.

    But Marvin was on to something when he suggested spaces between all the numbers. I thought I would have to do it manually or some other way that would make it too time consuming. But a few minutes ago I found code that works. I'd really like it to work on Active Sheet instead of Sheet 4 but I am leaving for work soon and don't have time to Google a solution.

    That code is
    [code]
    Sub InsertSpace_for_Speaking_Numbers()
    Dim Ws As Worksheet
    Dim Rng As Range, Cell As Range
    Dim i As Long
    Dim Str As String
    Set Ws = Worksheets("Sheet4")
    On Error Resume Next
    Set Rng = Ws.Cells.SpecialCells(xlConstants)
    On Error GoTo 0
    If Rng Is Nothing Then Exit Sub
    For Each Cell In Rng
    Str = ""
    For i = 1 To Len(Cell)
    Str = Str & " " & Mid(Cell, i, 1)
    Next i
    Cell = Trim(Str)
    Next Cell
    End Sub
    [\code]

    Apologies if I messed up the start and end [] above. No time to even find my notes to get the right entry.

    So thank you Logit and Marvin. And if either of you could quickly adjust the code I'd be ever so grateful.

    And while I am here - could I expand on this Speak issue?

    Is there a way of modifying this code for a range - say, A1:A10?

    [code]
    Sub Button1_Click()

    Dim myText As String

    myText = Range("A1").Value

    Application.Speech.Speak (myText)

    End Sub
    [\code]

    Thanks so much gentlemen for your time. I would love to stay here and work on this but my boss wouldn't be happy. Have a great day.

  9. #9
    Forum Contributor
    Join Date
    02-26-2015
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    248

    Re: Speak - Speech - Speak numbers individually

    One out of two. Done! Figured out how to modify the code for the first macro so that it works on selected cells instead of Worksheet 4. Off to the next one. Baby steps. Baby steps.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Speak On Enter button?
    By pxtaylor in forum Excel General
    Replies: 0
    Last Post: 08-04-2016, 09:43 AM
  2. Replies: 1
    Last Post: 03-16-2016, 11:09 AM
  3. I would like to speak to a moderator
    By JJFletcher in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-11-2015, 06:21 PM
  4. [SOLVED] Speak from specific cell value
    By Rufles in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-31-2014, 08:51 AM
  5. [SOLVED] How to make XL.Speech.Speak talk in a male voice
    By DPWM in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-03-2013, 04:43 PM
  6. Speak cells when the condition is met.
    By Sarangsood in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-01-2012, 03:10 AM
  7. Speech Object and Speak Method
    By DanBlum in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2011, 10:53 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1