Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendobject In Excel

Status
Not open for further replies.

JARE

Technical User
Jul 27, 2000
50
0
0
US
I was wondering if there is a simple way to Automate sending a spreadsheet via email to someone in Excel
In Access I use Docmd.SendObject.

Thanks
 
I did try recording a macro and using the SendTo - Mail recipient Command, Which generated this code:

Application.Dialogs(xlDialogSendMail).Show

But Unlike Access SendObject there is no where for Subject,
Body text, TO: , And CC:

Is there an easy way to do this in code? I'm pretty new to
the excel Object Set.
 
Oh, and the mail client is Exchange, using Exchange Server
 
I checked the help file for Excel VB a little better and
found this:

Application.Dialogs(xlDialogSendMail).Show arg1:="Test@test.com", arg2:="Subject Here"

Is there a better method to use?


 
The only drawback is the process won't be completly
automated. it only brings up the exchange dilog box
and fills in sender + subject + attaches open worksheet
It doesn't actually send the message. Still looking for a
better way
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top