• Have Excel Read A Range Of Data To You

    Introduction
    When keying in large amounts of data, it can be helpful to have Excel read the input back to you... either as you go, or after you have finished. In either case, this lets you focus on reading the numbers from the page, comparing what you have typed to the original values.

    This article covers both scenarios individually.

    Macro Weaknesses
    • The speech application reads information back phonetically. So if you are concerned about having names or words actually pronounced correctly, you may have to modify them a bit in the text.
    • The speech application reads quickly enough, but there is a noticeable delay between when the speech ends and when text will actually start registering in the cell. It may not be a good idea to activate immediate read-back if you are a quick typer.

    Versions Tested:
    These macros have been tested with Excel 2007, but should also work in Excel 97 through 2003 without any modifications.

    Read back your input as you type
    The two macros below will read back the input as you type information in the sheet.

    Read back any cell on the sheet as data is entered
    Place the following macro in the worksheet code module:

    Code:
    Private Sub Worksheet_Change(ByVal Target As Range)
    'Author       : Ken Puls (www.excelguru.ca)
    'Macro Purpose: Read aloud any values entered into the worksheet
        Application.Speech.Speak Target.Value
    End Sub
    Read back cells within a given range on a worksheet as data is entered
    I find it easiest to create a named range called "ReadToMe" that encompasses the range of data that you want monitored. Once you've done that, then the code below goes into the worksheet code module:

    Code:
    Private Sub Worksheet_Change(ByVal Target As Range)
    'Author       : Ken Puls (www.excelguru.ca)
    'Macro Purpose: Read aloud value any values entered into the named range
        If Not Intersect(Worksheets("Sheet1").Range("ReadToMe"), Target) Is Nothing Then
            Application.Speech.Speak Target.Value
        End If
    End Sub
    Read back your input from a range
    The routines below will read back the data from a range of completed data. Each of the routines goes in a standard module.

    Read back each cell in the selected area
    Code:
    Sub ReadToMe()
    'Author       : Ken Puls (www.excelguru.ca)
    'Macro Purpose: Read each cell in the selection aloud
        Dim cl As Range
        For Each cl In Selection
            Application.Speech.Speak cl.Value
        Next cl
    End Sub
    Read back each cell in a named range
    Code:
    Sub ReadNamedRange()
    'Author       : Ken Puls (www.excelguru.ca)
    'Macro Purpose: Read each cell in the range aloud
        Dim rng As Range
        Dim cl As Range
        Set rng = Worksheets("Sheet1").Range("ReadToMe")
        For Each cl In rng
            Application.Speech.Speak cl.Value
        Next cl
    End Sub

     

    I'm afraid that you must be logged in to comment or leave a testimonial. I wish it could be otherwise, but I'm trying to keep my site spam free for everyone's benefit. If you don't yet have an account it's completely free to sign up, and a very quick process. Simply click here to Register. Not only can you post a comment here, but it gives you full access to posts questions in our forum as well!

     

    If you already have an account, and just haven't logged in yet, what are you waiting for? Login Now!

  • MVP Logo
  • Recent Forum Posts

    Bob Phillips

    Index/match with multiple match criteria

    When I said Q1, I meant Quarter 1, cell E31, not cell Q1.

    It most definitely does match your last upload, C8:C30 is the date which I parse,...

    Bob Phillips Today, 06:44 PM Go to last post
    GLewis14

    Consolidate paired data sets

    hi all,

    I have a sheet which contains data sets (3 rows per data set), see Product Level sheet of attachment. I want to consolidate and total...

    GLewis14 Today, 02:46 PM Go to last post
    alansidman

    Please help!

    What is the criteria for counting the quantity. Would be helpful if you provided a sample workbook showing what you have and what your expected results...

    alansidman Today, 06:21 AM Go to last post
    cprop76

    Please help!

    I am trying to count two separate pieces of data which appear in the same excel column. The columns will have a date followed by a quantity so look something...

    cprop76 Today, 05:52 AM Go to last post
    anon125

    does excel 2002 have page layout>themes and colors

    using a great vertex spreadsheet, but to change the colours it says to use page layout>themes and page layout>colors
    I assume my old version...

    anon125 Today, 01:38 AM Go to last post