LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mmc308
 
Posts: n/a
Default Returning Cell Value if someone deletes the contents of a cell

I am trying to control someone blanking out a cell value in a worksheet

The person is able to enter/change the value in the cell

I have been able to control the cell with Data Validation so that the cell
does have a number in it with a
=ISNUMBER(B10) on a custom entry. But I want to stop the cell been blank
out, if it does the old cell value is returned there.

Something on the lines of

If Range("B10") = Blank then

msgbox ("You are not allowed to leave the cell blank")
Range ("B10") = OldCellValue

Else

EndIF

Hope this is clear this test will only take place if the cell value of B10
is cleared

TIA

mmc308


 
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
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
Conversion of Cell Contents into a Functional Worksheet name ? GMJT Excel Worksheet Functions 1 August 21st 05 04:59 PM
Adding contents of one cell to a range of cells. CLJinVA Excel Worksheet Functions 1 February 10th 05 10:19 PM
Cell contents vs. Formula contents Sarah Excel Discussion (Misc queries) 3 December 15th 04 06:02 PM
Display actual contents of cell xmasbob Excel Discussion (Misc queries) 1 December 6th 04 05:09 PM


All times are GMT +1. The time now is 08:33 PM.

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

About Us

"It's about Microsoft Excel"