I need some code that will assign the currently open instance of Excel to an object. Maybe something like this

objXL = SelectObject("Excel.Application")

or

objXL = GetObject("Excel.Application")

I don't know what object command, if any, to use here. Any thoughts?