Macro for load references in project wise

Hi, almost 20 years ago with MS J there were a macro that once activated pushing a button (F1)  it open a window, you could select references according to a logic.

similar to the picture 

any of you have some idea how to create?