LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Emailing

I have the following code in an excel spreadsheet to send email. The sending
of the email works fine but it does not make excel the active window after
sending. Is there a way to make excel active again so I can run other code
without having to manually activate excel.

Thanks
Pat
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(olMailItem)
With OutMail
.To = "
.CC = ""
.BCC = "
.Subject = "Machine Hours - Labor"
.Body = ""
.Attachments.Add ("\\epfilesrv\as400downloads\machine-labor\machine
hours - labor.xls")
End With

Set OutMail = Nothing
Set OutApp = Nothing

 
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
Emailing from Excel John McAlaney Excel Discussion (Misc queries) 2 May 6th 08 05:32 PM
Emailing with EXCEL Chris Excel Programming 2 September 24th 05 10:22 PM
Emailing From Excel Chris Brown Excel Programming 11 May 4th 05 08:15 PM
Emailing in Excel VBA Srinivas Excel Programming 2 October 20th 04 01:04 PM
Emailing from Excel pvp Excel Programming 1 August 4th 03 02:34 PM


All times are GMT +1. The time now is 11:55 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"