Try googling CreateObject("Excel.application") and look for examples