All you really need is a VI capable of converting a column index 0,1,2... to an Excel column name A,B,C..
Then you can build your range strings dynamically. I created a quick VI that aught to do this for you and included a small example program. I'll attach them here.