Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Apps and Programs
Send Excel workbook as attachment
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="cmhoz" data-source="post: 403477" data-attributes="member: 31774"><p>Almost got it! </p><p></p><p>Made some changes... now it looks like this:</p><p>[CODE]</p><p> Public Sub MailSendMail(theBook As Workbook, _</p><p> recipient As String, subject As String)</p><p> Dim mailStr As String</p><p> </p><p> mailStr = _</p><p> "Tell application ""Mail""" & vbNewLine & _</p><p> "make new outgoing message with properties" & _</p><p> "{recipient:""" & recipient & """,subject:""" & subject & _</p><p> """,attachment:""" & theBook.FullName & """,visible:true}" & vbNewLine _</p><p> & "end tell"</p><p> MacScript mailStr</p><p> End Sub</p><p></p><p></p><p>Sub sendmessage()</p><p> MailSendMail ThisWorkbook, "name@address", "This is the subject"</p><p>End Sub[/CODE]</p><p></p><p>BUT... the recipient isn't showing up in the message. Subject is fine, but no recipient....</p></blockquote><p></p>
[QUOTE="cmhoz, post: 403477, member: 31774"] Almost got it! Made some changes... now it looks like this: [CODE] Public Sub MailSendMail(theBook As Workbook, _ recipient As String, subject As String) Dim mailStr As String mailStr = _ "Tell application ""Mail""" & vbNewLine & _ "make new outgoing message with properties" & _ "{recipient:""" & recipient & """,subject:""" & subject & _ """,attachment:""" & theBook.FullName & """,visible:true}" & vbNewLine _ & "end tell" MacScript mailStr End Sub Sub sendmessage() MailSendMail ThisWorkbook, "name@address", "This is the subject" End Sub[/CODE] BUT... the recipient isn't showing up in the message. Subject is fine, but no recipient.... [/QUOTE]
Verification
What is Apple's smallest desktop computer called?
Post reply
Forums
Apple Computing Products:
macOS - Apps and Programs
Send Excel workbook as attachment
Top