Dear All,

I have userform when it open then J1=0.

then Cmd1 code runs then cell J=1 and Cmd2 code runs then J=2 in Sheet 1.

I want when close button on userform press then shows message that do action on Cmd1 OR Cmd2, it depend on J1 given number.

I require code which gives above action when press close button (x) only.

Thanks in advance, regards RR