Re: Prevent Hard Inputs
- From: Frederik12 <Frederik12.2cla73_1155658507.3311@xxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 15 Aug 2006 12:14:22 -0400
Bob Umlas Wrote:
You can define a function to return true if it contains one of those
characters, then use conditional formatting in that range to turn cells
red
and reference the function, like
=SpecChar(A1) where A1 is the active cell when you use the conditional
formatting, and SpecChar is defined as:
Public Function SpecChar(rg) As Boolean
For Each thing In rg
If InStr(thing.Formula, "+") > 0 Or _
InStr(thing.Formula, "-") > 0 Or _
InStr(thing.Formula, "/") > 0 Or _
InStr(thing.Formula, "*") > 0 Then
SpecChar = True
Exit Function
End If
Next
End Function
Bob,
thanks, but how do I define a function?
KR
--
Frederik12
------------------------------------------------------------------------
Frederik12's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=32229
View this thread: http://www.excelforum.com/showthread.php?threadid=519791
.
- Prev by Date: Re: find value and paste contents of cells
- Next by Date: Re: Making data validation drop down list wider
- Previous by thread: Help on this formula
- Next by thread: Re: Hyperlink to PDF file.
- Index(es):
Relevant Pages
|