LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
ijb ijb is offline
external usenet poster
 
Posts: 26
Default eMail a sheet

I think you'll have to use the MAPI add-in if you can't assume on the users
having Outlook.I have some code at work I'll dig it out tomorrow.
It's something like:
Set objSession = CreateObject("MAPI.Session")
objSession.Logon "", "", False, False, 0

Set objMessage = objSession.Outbox.Messages.Add

With objMessage
.Subject = Subject$
.Text = MessageText$ + Chr$(10)
Set objAttach = .Attachments.Add
With objAttach
.Type = 1
.Position = 0
.Source = Attachment$
.Name = "xxx.txt"
End With
End With

Set objOneRecip = objMessage.Recipients.Add
objOneRecip.Name = Recipient$
objOneRecip.Resolve

objMessage.Update
objMessage.Send showDialog:=False
objSession.Logoff
SendMessage = True


--
If I've mis-understood the question please tell me.

HTH

ijb

Remove nospam from my e-mail address to talk direct

Not MCSD, MVP, TLA, P&P, PCMCIA, etc just trying to help


"Ren" wrote in message
...
Salutation To All

I would like to be able to use a button, and by clicking on this button,

would result on my Sheet6 being eMail to some one.

Those using this application might not be using Outlook Express or Outlook

for emailing.

Thanks to all

Ren



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
send email to each customer email in excel sheet. -keevill- Excel Discussion (Misc queries) 3 July 17th 08 02:33 PM
email protected sheet widman Excel Discussion (Misc queries) 0 November 29th 06 03:55 PM
email a sheet Uti Setting up and Configuration of Excel 0 September 16th 05 09:29 AM
eMail a sheet Bob Phillips[_6_] Excel Programming 0 June 8th 04 08:58 PM
eMail a sheet Ron de Bruin Excel Programming 0 June 8th 04 08:40 PM


All times are GMT +1. The time now is 12:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"