Hi Pat
you can code a worksheet_change even to check to see if there is anything in
B1:T1 when data is entered in A1 - e.g.
----
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" And Target.Value < "" Then
If
Application.WorksheetFunction.CountIf(Sheets("Shee t3").Range("B1:T1"), "*")
= 1 Then
MsgBox "Range B1:T1 is not empty"
End If
End If
End Sub
---
to use the code, right mouse click on the sheet that you want to run the
code against and choose view code
copy & paste the above directly into the right hand side screen - if you get
any red lines, click at the end of the line and press the delete key - this
should fix up any line break problems.
change "Sheet3" to the name of your sheet
use alt & f11 to switch back to your worksheet and test
Hope this helps
Cheers
JulieD
"Pat" wrote in message
...
I need a warning to appear when a user enter a value into A1, if there is a
value in any cell in the range B1:T1
Any one got a solution?
Thanks
Pat
|