Well, there's not enough info here to give you much guidance, but there seems to be nothing you couldn't get coded automatically by using the Macro Recorder.