Yea it is possible to have a button that is linked to a macro that selects different locations.
Java is not compatible with Excel. You would have to create an intermediate .csv file for example.