Calling Alert message!

  • Thread starter Thread starter Kim-Anh Tran
  • Start date Start date
K

Kim-Anh Tran

How do I change the Target.Formula="" to calling an alert message?
My appreciation in advance for any help!
Kim-Anh

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row >45 And Target.Row<55 And Target.Column = 20 Then
Select Case Target.Formula
Case "x"
'allow this
Case ""
'allow this
Case Else
'reset to nothing
Target.Formula = ""
End Select
End If
End SubTarget.Formula="
 
You can't. The formula should be a formula, although you could just populate
its value with the text of the message.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

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

Back
Top