oOutLookObject = CreateObject("Outlook.Application") oEmailItem = oOutLookObject.CreateItem(MAILITEM ) WITH oEmailItem .To = Buypledged.email .Importance = IMPORTANCEMORMAL .Subject = ALLTRIM(shipfiles.buyer) + " Lot Pledged instructions loaded - File: " + ALLTRIM(shipfiles.filename) .Body = "Your pledged instructions have been loaded. The details are as follows: " + ; CHR(10) + CHR(10) + ; "Filename: " + ALLTRIM(ALLTRIM(shipfiles.FileName))+ ; CHR(10) + CHR(10) + ; "Pledged Date: " + DTOC(DATE()) + ; CHR(10) + CHR(10) .Body = .Body + CHR(10) + CHR(10) + ; "Total lots in shipping instruction: " + ALLTRIM(STR(lnLotCnt))+ ; CHR(10) + CHR(10) + ; "Lot Details: " + ; CHR(10) + CHR(10) + ; "Sale Season Lot# # of Bale IntRef# Buyer" + ; lcLots + ; CHR(10) + CHR(10) + ; "*** End of Pledged Instruction ***" .Send ENDWITHI've tried using .attachment.add('filename.xls'), but during runtime it caused an error.