Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
dh dh is offline
external usenet poster
 
Posts: 1
Default lock one cell when data in another

You can do it by formula using data validation without the
need for VBA
data|validation| use the drop down to select Custom
in the formula box enter =if(g15<0,0)
then add a message that you want displayed

dave


-----Original Message-----
OK here's the scenario I need:

When User enters data in G15, I15 needs to prevent entry.
If User clears data in G15, I15 needs to allow entry.

I know this is easy but I'm still learning VBA.
.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default lock one cell when data in another

OK that works great!

now how about having no data entry capability in cell G15
or I15 if cell C15 is blank

TIA

-----Original Message-----
You can do it by formula using data validation without

the
need for VBA
data|validation| use the drop down to select Custom
in the formula box enter =if(g15<0,0)
then add a message that you want displayed

dave


-----Original Message-----
OK here's the scenario I need:

When User enters data in G15, I15 needs to prevent

entry.
If User clears data in G15, I15 needs to allow entry.

I know this is easy but I'm still learning VBA.
.

.

Reply
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
LOCK CELL AFTER DATA IS ENTERED MIke Excel Discussion (Misc queries) 4 October 24th 07 12:33 AM
Lock the cell once enter the data Dinesh Excel Worksheet Functions 0 August 11th 06 03:11 AM
Lock data in a cell a specific cell based on selection on other ce CrimsonPlague29 Excel Worksheet Functions 0 May 10th 06 11:06 AM
Lock Data in Cell after entered CrimsonPlague29 Excel Discussion (Misc queries) 0 May 9th 06 11:51 AM
Lock Cell After Data Entry Ripper Excel Discussion (Misc queries) 1 February 28th 06 08:17 PM


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