why don't you record the manual actions, with the macro recorder.

then you have the code.