Custom activity that accepts a workbook object

I would like to create a workbook object and pass it to a custom activity where it returns the workbook object after manipulation - is this even possible? I have tried using the uipath excel object that definitely does not work but I also trie excel interop object and that also did not work. Has anyone had success in this area?