How do you create an invisible button that provides a user with the ability to count the number of cells that are clicked?

jfatheree

New Member
Joined
Jul 3, 2019
Messages
1
My wife is a second grade teacher who needs some way to check the reading fluency level for each student. The idea is to type a story into Excel. A different word will be entered into its own cell. For example:
A:1 the; A:2 dog; A:3 ran; A:4 away; A:5 .

I would like to create an invisible button for each cell. The button for each cell would be assigned a numerical value of 1.

The goal would be for her to have the ability to listen to her students read and click on each word the student missed. Excel would keep track of the total number of missed words for each line and for the entire passage. If the 6th column were assigned the task of line totals, a student that missed the word in A:1 and A:3 a score of 2 would appear in A:6.

Can anyone provide some assistance? If so, thanks in advance. This will be a huge time saver for her as a classroom teacher.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
I believe you misspoke

You said:
If the 6th column were assigned the task of line totals
Then you said:
a score of 2 would appear in A:6

A6 is not column 6 A6 means column A Row 6

And I would think:

Your question would be:
You showed:
A:1 the; A:2 dog; A:3 ran; A:4 away; A:5 .

It should be:
A1 would be "the"
B1 would be "dog"
C1 would be "ran"
D1 would be "Away"

And score would be in F1


Excel has no visible buttons.

But this script may do what you want.

If the student misses a word double click on the word they missed.
And the score would be entered.

This script runs when you double click on any cell in column A to E
The script only runs if there is some value in the cell.
Score is entered into column F
And the missed words are highlighted in Red

This is an auto sheet event script
Your Workbook must be Macro enabled
To install this code:
Right-click on the sheet tab
Select View Code from the pop-up context menu
Paste the code in the VBA edit window

Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
'Modified  7/3/2019  11:21:20 PM  EDT
If Target.Column < 6 And Target.Value <> "" Then
Cancel = True
Cells(Target.Row, 6).Value = Cells(Target.Row, 6).Value + 1
Target.Interior.Color = vbRed
End If
End Sub


<strike>
</strike>
 
Upvote 0

Forum statistics

Threads
1,214,391
Messages
6,119,239
Members
448,879
Latest member
VanGirl

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top