vbscript - VBS to check for records in excel and sent email -


i have vbs sends excel sheet every day users through outlook. days excel empty don't want send excel sheet, instead message "no records found" or thing that. current vbs script below -

const cdobasic=0 schema = "http://schemas.microsoft.com/cdo/configuration/"  set objemail = createobject("cdo.message")  objemail  .from = "xyz@abc.com"  .to = "abc@123.com" .cc = "akcg@h.com" .subject = "report (daily tracking)" .textbody = "blah blah blah" .addattachment "f:\\monitor_output\\report.xls"   .configuration.fields .item (schema & "sendusing") = 2 .item (schema & "smtpserver") = "mail.xxxx.corp" .item (schema & "smtpauthenticate") = cdobasic  end  .configuration.fields.update  .send  end 

any on how modify , send message instead of whole excel sheet?

thanks, arun


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -