I would like to create two differnet VBA events that do the following; If I insert a…
- User
I would like to create two differnet VBA events that do the following;
If I insert a date in column I then of the same row check If column B has a text value 'Service'. If colulmn B value is not 'Service', then pop up the message 'This is not a current Service" and Exit Sub If column B value is 'Service' Then pop up message "Thank you for entering Service Date Completed. Please proceed to enter Service Schedule as number of days". and end this Sub
If I insert a number value in column G then of the same row check If column I has a date value and check if column B on the same row has a text value "Service" If colulmn B value is not 'Service', then pop up the message 'This is not a current Service" and Exit Sub If column I value is not a date value Then pop up message "Date Service Completed not present" and Exit Sub If all conditions are OK, then on the same row where I inserted a number in column G, enter a date value into column H that is equal to the date value of 'column I plus the number value in column G' (I+G) Then change the value of column B on the same row to the text value 'Serviced'. and then pop up message "A New Service row will now be created" Then find the next available empty row in the range B:J and change the cell values of the new row as described; Column B value = 'Service' Column C value = Date Value displayed in column I from the row where column G was recently changed Column E value = Date Value dispalyed in column H from the row where column G was recently changed Column J value = Value dispalyed in column J from the row where column G was recently changed Column L value = Value dispalyed in column L from the row where column G was recently changed and end this sub
- Assistant