Select an element and check its file name.....

Is there any way to select an element using the element selection tool and check its file name using vba code?