LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Reverting to previous values

To expand on my previous reply....

If A1 is your data entry cell.
In B1 (or wherever) put "=IsOK(A1)"
For A1 choose Data Validation Custom and in Formula put "=B1"

My simple Test function:

Function IsOK(val) As Boolean
IsOK = (val < "") And (val < 10)
End Function

Try it out. If you enter an invalid value (=10) you will get the usual "Cancel/Retry" message.
The cell containing the validation formula would of course be hidden in the final version....


Tim.


"Guy Normandeau" wrote in message
...
You cannot modify other columns/cells inside a function call from a cell.

"Tim Williams" wrote:

Why not just put your custom function in another cell (with the entry cell as an input) and have the entry cell validation
point to
the other cell ?

Works for me...

--
Tim Williams
Palo Alto, CA


"Mat P:son" wrote in message ...
Yeah, would be nice if macros were allowed... Until that lovely day I suppose
we have to rely on the rather limited validation functionality that we've got.

Exactly how complicated is your validation? Is it still worth a try to hack
it together in the standard Excel formula language? Any pseudo-code or VBA
code available perhaps?

And although I'm sure you've been hunting high and low for info on
validation, here's a link with plenty of links that may be interesting:

http://www.mvps.org/dmcritchie/excel/validation.htm


Cheers,
/MP



 
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
TO Average Previous values Speedy Excel Worksheet Functions 7 October 20th 07 07:08 AM
Average of previous values Speedy Excel Discussion (Misc queries) 4 October 14th 07 07:28 AM
REVERTING A EXCEL FILE TO ITS PREVIOUS SAVE Trav Excel Discussion (Misc queries) 4 January 3rd 07 11:47 PM
Delete row containing all previous values. mohd21uk via OfficeKB.com New Users to Excel 1 May 10th 06 01:57 PM
Autocomplet with no previous values Brian Excel Programming 0 May 14th 04 03:56 AM


All times are GMT +1. The time now is 12:39 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"