Journal for setting Refernce Only attribute for a list of components

Hi
Does anyone have a journal that would take a list of components from a text file or excel, then in an assembly change all the components listed to "Reference Only"

Kind regards
Martyn