Hi there,
need help with auto adding data validation everytime new row has been inserted.
Data validation to be "Accept or Reject". if cell is reject whole row to be rejected and highlighted red.
need help with auto adding data validation everytime new row has been inserted.
Data validation to be "Accept or Reject". if cell is reject whole row to be rejected and highlighted red.
VBA Code:
With WSheet
.Activate 'activating the sheet
.Range("A5").EntireRow.Insert (xlDown)
.Range("A5").EntireRow.ClearFormats 'Clear all formats from row 5
.Range("A5:Q5").Font.Size = 14 'Increase font size
'Insert a new row at 5 and shift everything down
.Range("A5").Value = Date 'Insert date at A5
.Range("B5").Value = FormSelectSht.ComboBoxProduct.Value 'Insert Combobox value at B5
' .Range("C5") = JulianDt(Date)
.Range("C5").Value = FormSelectSht.TextBoxOperator1.Value
.Range("D5").Value = FormSelectSht.TextBoxOperator2.Value
.Range("E5").Value = FormSelectSht.TextBoxLot.Value
.Range("I5").Value = FormSelectSht.CBVent.Value
.Range("G5").Value = Time 'insert time at G5
.Range("H5").Value = FormSelectSht.CBCrane.Value
.Range("J5").Value = FormSelectSht.ComboBoxPowder.Value
End With