Requesting help for > VBA to check range (C2:G1001),
The Criteria: if C2 and D2 are filled (not empty) then G2 must be > 0 to have a complete entry, if criteria was met then it is "legit"; the cursor should stay at G2 until it is filled with a number. To exit such checking, it is "legit" to erase entry of either C2 or D2 to bypass the checking (because the criteria would now be gone).
This check should only be invoked if there is no entry to G2 whenever C2 & D2 are filled.. and so on..
C2,D2,G2 is just a presentation, it could be any row from 2 to 1001..
Should these check be in:
Private Sub Worksheet_SelectionChange(ByVal Target As Range) or
Private Sub Worksheet_Change(ByVal Target As Range)?
I hope this is clear enough.
many thanks
The Criteria: if C2 and D2 are filled (not empty) then G2 must be > 0 to have a complete entry, if criteria was met then it is "legit"; the cursor should stay at G2 until it is filled with a number. To exit such checking, it is "legit" to erase entry of either C2 or D2 to bypass the checking (because the criteria would now be gone).
This check should only be invoked if there is no entry to G2 whenever C2 & D2 are filled.. and so on..
C2,D2,G2 is just a presentation, it could be any row from 2 to 1001..
Should these check be in:
Private Sub Worksheet_SelectionChange(ByVal Target As Range) or
Private Sub Worksheet_Change(ByVal Target As Range)?
I hope this is clear enough.
many thanks