How do I make excel say a phrase when hitting a certain goal in a

  • Thread starter it''''''''sh hardy
  • Start date
I

it''''''''sh hardy

I'm making a numbers reporting sheet for my retail store, and would like the
sheet to automatically say "Great Job Hitting AROD Goal!!!" when another cell
hits above $30.... Is this possible?
 
M

Mike H

Hi,

Right click your sheet tab and view code and paste the code below in. Change
the cell to what you want

Private Sub Worksheet_Change(ByVal Target As Range)
If Range("A1").Value > 30 Then
Application.Speech.Speak "Great Job Hitting AROD Goal"
End If
End Sub

Mike
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
 
M

Mike H

I forgot to mention that speech must be enabled in the windows control panel
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
 
I

it''''''''sh hardy

Ok thanks!!! But maybe I should have clarified - I dont want it to literally
say that, I want it to appear in another cell in Red...
 
M

Mike H

Hmmmm,

Yes you could have made that clearer!!

=IF(A1>30,"Great Job Hitting AROD!!!","")
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
 
I

it''''''''sh hardy

LOL Thanks Mike - sorry about that!


Mike H said:
Hmmmm,

Yes you could have made that clearer!!

=IF(A1>30,"Great Job Hitting AROD!!!","")
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
 
M

Mike H

Glad I could help
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
 

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

Top