E-mail reports with to, bcc, subject and field entered

dixon1983

Board Regular
Joined
Apr 23, 2005
Messages
175
Hi,

I currently send reports to different departments via e-mail from access through outlook. The report is sent as an attachment and the To, BCC, Subject and Main Body of each e-mail is pretty much identical.

Could someone give me the vb code I would need so that when I click on the report it:

1) Automatically selects Rich Text Format
2) Puts Mailing Group "Accounts" in the To field
3) Puts Mailing Group "Myself" in the BCC field
4) Puts 'Todays date' and "Morning Report" in the Subject field
5) Inserts a Signature called 'Default' into the main body of the e-mail.


The code I currently use is :

Private Sub Label602_Click()
On Error GoTo Err_Command481_Click

Dim stDocName As String

stDocName = "Accounts Morning Report"
DoCmd.SendObject acReport, stDocName

Exit_Command481_Click:
Exit Sub

Err_Command481_Click:
MsgBox Err.Description
Resume Exit_Command481_Click
End Sub



Any help would be fantastic.
If you require any further info let me know.

Thanks in advance :biggrin: [/i]
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,215,779
Messages
6,126,850
Members
449,345
Latest member
CharlieDP

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top