MACRO Opening a part from a BOM table

I want to make a macro that when I select a cell in the BOM table that is in PARTS ONLY mode, and run the macro, the part will open as it was last saved. Does anyone have such a macro? I tried several attempts and did not get the correct result. Thanks to those who responded.