Nice Code Boris :)
would you like to extend this eg.
we can put some codes top of this code and to the bottom
instead of getfile() first,
we can create a cursor such as lselected L,filename c(50)
and fill it .001 files after when user select some file(s)
your codes will execute these files in a loop
TIA