The sendobject command can also be used in vba. You would specify Snapshot
Format for the Output Format. You can also use the macro to specify the To,
SUBJECT and BODY data. You would refer to a control in your form which
contains these values.
Example:
[Forms]![frmSend]![To]
[Forms]![frmSend]![Subject]
[Forms]![frmSend]![Body])
Dennis said:
I'm triggering this via VBA. Can I pass the TO, SUBJECT and BODY data to the
macro?
:
Automate sending a report snapshot in e-mail
1. Create a macro.
2. Add the SendObject action to the macro. For example:
Argument: Value
Object Type: Report
Object Name: Summary of Sales by Quarter
Output Format: Snapshot Format
To: All Northwind Traders; Shareholders
Cc: none
Bcc: none
Subject: Quarterly Sales report
Message Text: This is our best quarter in years!
Edit Message: No
Run the macro each time you want to send the report snapshot.
Sarah
:
I need to use the VBA SendObject command to send an email containing an SNP
file (report). The options for that command do not show how I can specify the
SNP format.
How can I do that please?
Thanks!