Pop Up Message = Cell

  • Thread starter Thread starter Wayne
  • Start date Start date
W

Wayne

Having tried to protect a cell that has a formula and
also having a comment attached to the cell saying "If you
want to type in this cell go to Sheet1 cell..Etc and type
there..." Does anyone know some code so that...

If someone tries to type in a cell then it produces a pop
up message?
 
Wayne try this in the sheet code

Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
If Target.Address = "$A$1" Then
If ActiveCell.HasFormula Then
MsgBox ("If you want to type in this cell go to Sheet1 cell..")
Else
End If
End If
End Sub

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2000 & 97
** remove news from my email address to reply by email **
 

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