LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Identifying formulas using Validation rule

Sorry Bob, I did not read your entire message before replying. There are a
couple of options to reduce the probability of overwriting cells with
formulas. One is to portect the sheet and unlock only the cells that are
allowed to have data entered. You can consult the help files for this method.

The other simpler but less secure method is to add background colors to
those cells that contain formulas. You can do that through the
FormatCellsPatterns facility.

"Bob" wrote:

A member of this forum provided the following UDF to display a formula within
a cell:

Function GetFormula(Cell As Range) As String
GetFormula = Cell.Formula
End Function

I tried creating the following €ścustom€ť Validation rule for cell A1 (which
happens to contain a formula):

=LEFT(GetFormula(A1),1)="="

but it is not working correctly (I get a €śNamed range cannot be found€ť error
message).

I want to ensure that someone doesn't inadvertently over-write a cell
containing a formula.

Can anyone show me how to do this using a Validation rule? I am aware of a
solution using Conditional Formatting, but I really need to use a Validation
rule.

Any help would be greatly appreciated.

Thanks,
Bob

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation Rule aubrey New Users to Excel 0 October 28th 08 07:12 PM
Validation Rule anomaly Bob Excel Worksheet Functions 6 March 8th 07 08:36 PM
Identifying formulas using a Validation rule Bob Excel Worksheet Functions 8 November 22nd 06 09:34 PM
Validation rule nick Excel Discussion (Misc queries) 4 March 6th 06 04:57 PM
validation rule andrewm Excel Worksheet Functions 7 June 23rd 05 06:45 AM


All times are GMT +1. The time now is 02:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"