Preposition + pronoun (object form)
Incorrect . It is a secret between you and I.
Correct : It is a secret between you and me.
Incorrect : I am senior to he.
Correct : I am senior to him.
Note: In these sentences, ‘between’ and ‘to’ are prepositions. You should remember that all prepositions are followed by the object form of pronouns. The nominative case cannot be used after a preposition.