This invention relates to benzopyran compounds of formula (I) wherein X is NR6, Y is a bond, SO or SO2, Z is C1-4alkyl group or phenyl group, W is hydrogen atom, hydroxy group, C1-6 alkoxy group, a halogen atom, C1-4alkyl group or C1-6alkylsulfonylamino group, R1 and R2 are independently of each other C1-3alkyl group, R3 is hydrogen atom, hydroxy group or methoxy group, m is an integer of 0 to 4, n is an integer of 0 to 4, V is a single bond, CR7R8, NR9, O, S, SO or SO2, R4 is hydrogen atom or C1-6alkyl group, R5 is hydrogen atom, C1-6alkyl group, C3-8cycloalkyl group, C3-8cycloalkenyl group, C6-14aryl group or C2-9heteroaryl group. These compounds are useful as an anti-arrhythmic agent.