Method for controlling a plurality of assigned electrically controlled transmission switch elements (T1, T2, T3) of a first set in a vehicle sunroof, wherein the transmission switch elements (T1, T2, T3) of the first set are arranged one behind the other, wherein a first peripheral transmission switch element and a second peripheral transmission switch element are provided, wherein at least one first switch element and one second switch element are available for control, comprising the steps: - Receiving a first switching state of the first switch element within a predetermined time, wherein, - if all transmission switch elements (T1, T2, T3) of the first set are opaque, the second peripheral transmission switch element is switched to transparent, - if all transmission switch elements (T1, T2, T3) of the first set are transparent, the second peripheral transmission switch element is switched to opaque, - if the first peripheral transmission switch element is opaque and the second peripheral transmission switch element is transparent, the transmission switch element that is immediately adjacent a transparent transmission switch element of the first set is switched to transparent, - Receiving a first switching state of the second switch element within a predetermined time, wherein, - if all transmission switch elements (T1, T2, T3) of the first set are opaque, the first peripheral transmission switch element is switched to transparent, - if all transmission switch elements (T1, T2, T3) of the first set are transparent, the first peripheral transmission switch element is switched to opaque, - if the second peripheral transmission switch element is opaque and the first peripheral transmission switch element is transparent, the transmission switch element that is immediately adjacent a transparent transmission switch element of the first set is switched to transparent. - Receiving a first switching state of the first switch element within a predetermined time, wherein, - if all transmission switch elements (T1, T2, T3) of the first set are opaque, the second peripheral transmission switch element is switched to transparent, - if all transmission switch elements (T1, T2, T3) of the first set are transparent, the second peripheral transmission switch element is switched to opaque, - if the first peripheral transmission switch element is opaque and the second peripheral transmission switch element is transparent, the transmission switch element that is immediately adjacent a transparent transmission switch element of the first set is switched to transparent, - if all transmission switch elements (T1, T2, T3) of the first set are opaque, the second peripheral transmission switch element is switched to transparent, - if all transmission switch elements (T1, T2, T3) of the first set are transparent, the second peripheral transmission switch element is switched to opaque, - if the first peripheral transmission switch element is opaque and the second peripheral transmission switch element is transparent, the transmission switch element that is immediately adjacent a transparent transmission switch element of the first set is switched to transparent, - if the first peripheral transmission switch element is opaque and the second peripheral transmission switch element is transparent, the transmission switch element that is immediately adjacent a transparent transmission switch element of the first set is switched to transparent, - Receiving a first switching state of the second switch element within a predetermined time, wherein, - if all transmission switch elements (T1, T2, T3) of the first set are opaque, the first peripheral transmission switch element is switched to transparent, - if all transmission switch elements (T1, T2, T3) of the first set are transparent, the first peripheral transmission switch element is switched to opaque, - if the second peripheral transmission switch element is opaque and the first peripheral transmission switch element is transparent, the transmission switch element that is immediately adjacent a transparent transmission switch element of the first set is switched to transparent. - if all transmission switch elements (T1, T2, T3) of the first set are opaque, the first peripheral transmission switch element is switched to transparent, - if all transmission switch elements (T1, T2, T3) of the first set are transparent, the first peripheral transmission switch element is switched to opaque, - if the second peripheral transmission switch element is opaque and the first peripheral transmission switch element is transparent, the transmission switch element that is immediately adjacent a transparent transmission switch element of the first set is switched to transparent.