View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] heyitsthechad@gmail.com is offline
external usenet poster
 
Posts: 4
Default Enter information in one and lock the other, OR vise versa

Hello,

I am an intermediate user of excel, however my knowledge of VBA is a
little rusty. I am currently stumped on this problem for a worksheet I
working on:

Worksheet is "RateSheet" and already unlocks and locks certain ranges
on worksheet.change event
Range "A" is D12:D1000
Range "B" is E12:E1000
Validation for both ranges is positive currency values

I want to compare a cell from A to the corresponding cell in B and
allow information to only be entered in one OR the other cell.
Therefore if the user enters a number in A, the user will not be able
to enter any values in B, and ultimately B will be greyed out as well.
The same goes for B, a value entered will have the same lockout results
in A. If A had information and B was locked out, deleting or clearing
A would unlock B.

Hope this makes sense... I've searched but have not found exactly what
I am looking for...