I encounter difficulties to write something in an .xls file. It is somehow complex ; to sum up, I firstly write on line A1 6 different strings, then I use a while loop in order to call a function named simulation4 50 times with random parameters. This function returns several parameters BUT it can happen than the first two parameters nbr_de_reflux and nbr_de_reflux_trouver are empty. If they are not empty I need to write directly after line A1 the different parameters in order.
I know how to do this if I specify a line (A2,A3...) or a position but I ignore how to do this if I don't specify a position at all. I need to write everything one after the other when nbr_de_reflux and nbr_de_reflux_trouver are not empty. Else, I jump to next inex in the while loop. So here is my function :