vba - Excel Macro sending through Thunderbird -
i wondering if knew how build macro in excel send spreadsheet through thunderbird.
example
option explicit sub thunderbird() dim scmd string '// prepare thunderbird dim sto string '// recipient dim ssubject string '// subject dim sbody string '// email body sto = "test@email.com" ssubject = "subject" sbody = "body text" scmd = "c:\program files\mozilla thunderbird\thunderbird" '// or 'scmd = "c:\program files (x86)\mozilla thunderbird\thunderbird" '// path scmd = scmd & " -compose " & chr$(34) & "mailto:" & sto & "?" '// chr$(34)=double quote scmd = scmd & "subject=" & chr$(34) & ssubject & chr$(34) scmd = scmd & sbody call shell(scmd, vbnormalfocus) end sub
Comments
Post a Comment