Not that I disagree with using file or folder dialog as proposed by Vlad, but out of curiosity I researched and found a couple of interesting things. One is that invoking ribbon commands in code seems to be called repurposing (that seems like another M$ misnomer) but it involves xml and vba. Another is this this forum
https://www.add-in-express.com/forum...FID=5&TID=2581
In the 4th post there is a link which I thought might lead to an article, but it was a download for an add-in so do so at your own risk. The thread is interesting though. The point of it might be that while the file/folder dialogs may suffice here, they are of no help with other ribbon commands so the add in might be useful. I'm not going to try it simply because at this point I have no interest in exploring the subject further.
Last edited by Micron; 11-11-2022 at 09:52 AM.
Reason: clarification
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.