It seems like this post is connected to this topic you posted earlier
If it is, you can extend the script I provided earlier to also work for edits done on the sheet 'To Do'.
Please see, if this works for you:
function onEdit(e) {
var ss = e.source,
s = ss.getActiveSheet(),
sheets = ["To Do", "Beau", "Derek", "Jay", "Steven", "Terence", "Victor"],
ind = sheets.indexOf(s.getName());
if (ind === 0 && e.range.columnStart === 6 && e.range.rowStart > 4) {
ss.getSheetByName(e.value).appendRow(
e.range.offset(0, -5, 1, 6).getValues()[0])
s.deleteRow(e.range.rowStart);
} else if (ind > 0 && e.range.columnStart === 1 && e.value === 'yes') {
ss.getSheetByName('Complete Tasks')
.appendRow(e.range.offset(0, 0, 1, 7)
.getValues()[0])
s.deleteRow(e.range.rowStart);
}
}
NOTE: I noticed you changed the 'e' to 'o'. This will lead to a non-working script. 'e' is not just a random letter, but represents an event object. More info on event objects