thanks tommy,
I got everything to work except select multi-file.
In killian's code
[VBA]
flags as long
.
.
.
'no flags
flags = 0
[/VBA]
I tried to change it to the following, but it still only allow to select one file.
[VBA] flags = cdlOFNAllowMultiselect[/VBA]
what should I set the flags to???
thx