Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Highlight functionality for indication of empty/missing fields 1

Status
Not open for further replies.

TBL3

Programmer
Jun 6, 2011
50
CA
Hi,

I am working on an application form.
I have many fields that needs to be inputted.
Also, there are mandatory fields that needs to be inputted in order to obtain the final value.

However, my concern is that I wish to code a macro that recognizes all the mandatory fields, and once the mandatory fields are not inputted, the description of the missing field becomes highlighted or change color (indication showing that the field must be filled).

Well, I am lost on how to approach this issue.
Any input or suggestions will be great.Thanks,
 
Anyways, regards to the code I have wrote, does that look okay? or did I miss something?
 
Regarding to your comment, that is not what I wish to occur.
I do not want the description of the fields to be all in RED initially. I only want the indication once they have completed the last field and realized that they have missed a mandatory field.

Does this make more sense?
 

You cannot name your FUNCTION and your RANGE the same thing!!!

ALSO, I would not insert a formula. I would insert the VALUE...
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
  if [b]FINAL_score[/b]() = 0 then
    'call your summing procedure
    [[b]FINAL_score_RANGE[/b]].value = application.SUM("T16:T54")      
  end if
End Sub

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top