Question : Data Validation2

Hi Experts,

I Would like to request Experts help to write a script which is able to crosscheck data from Column_D (Reconcile sheet) with Column_C if the data in Column_F starts with “M0000”. Highlighted in red If the data not available in that cell. Hope Experts could help me to create this feature. Attached the workbook for Experts perusal.


Attachments:
 
 

Answer : Data Validation2

You can use the script I gave you earlier to do both at once.

For i=5 to Range("F65536").End(xlUp).Row
  if left(cells(i,6).value,5)<>"M0000" then
    if right(cells(i,3).value,len(cells(i,6).value))<>cells(i,6) then
      cells(i,3).interior.colorindex=3
    endif
  else
    if left(cells(i,3).value,len(cells(i,4).value))<>cells(i,3) then
      cells(i,3).interior.colorindex=3
    endif
    if cells(i,4).value="" then
      cells(i,4).interior.colorindex=3
    endif
  endif
next
Random Solutions  
 
programming4us programming4us