Export objects from selected objects?

Just wondering if it would be possible to add an option (or does this already exist and I am blind!!) to export selected objects rather than just the visible objects.

“why not just hide the objects I don’t want?”

For example I want to export 2 sub models and these are about 4 layers deep, so I had to copy and move the alll the way up and then hide the other objects I didn’t want, export and then delete the objects.