Let tuples and have the same quantifier-free type. The map extends to an isomorphism between the substructures they generate. Identify these substructures with one structure . Both expanded models satisfy , which is complete by hypothesis, so they satisfy the same formulas with parameters from . Thus and have the same complete type.
Therefore every isomorphism between substructures of models of is partial elementary. By compactness, this implies that every formula is equivalent modulo to a quantifier-free formula: otherwise two tuples with the same quantifier-free type but different truth values could be constructed. This is the common-substructure test for quantifier elimination, so admits quantifier elimination.