Get document ID from word application

Hi,

I would like to get properties of a word document (docm) that is opened from M-Files in vba. Essentially I just need the document ID. I got this information before by using the M-Files ribbon and adding it to a cell where I read it from, but I am sure there must be a easier way to get it.

Please let me know if you have some ideas.