Export table to csv file selected row and column

It should work, I made an edit, test it yourself