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: 11
Default Set focus on Subject line in Outlook

I have the correct as I want it but is there a way I can have the cursor
positioned in the Subject line after the file name? (Is this even possible?)

-------------------
Sub SendWithAtt()
Dim olApp As Outlook.Application
Dim olMail As MailItem
Dim CurrFile As String

Set olApp = New Outlook.Application
Set olMail = olApp.CreateItem(olMailItem)

ActiveWorkbook.Save

CurrFile = ActiveWorkbook.Path & "\" & ActiveWorkbook.Name

With olMail
.To = "
.Subject = ActiveSheet.Range("d1").Text
.Attachments.Add CurrFile
.Display '.Send
End With

Set olMail = Nothing
Set olApp = Nothing

End Sub


 
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
Subject from Outlook to Excel juanpablo Excel Discussion (Misc queries) 12 June 18th 08 05:44 PM
Push Button in Outlook to Change Focus to Outlook Contact List Cole Excel Programming 0 October 25th 06 11:29 PM
Populate the subject line. Scott Hutchinson Excel Worksheet Functions 1 February 18th 05 08:20 PM
Subject line in outlook scottnshelly[_4_] Excel Programming 2 April 8th 04 04:26 AM
Subject line in E-mail Ola Sigurdh Excel Programming 2 January 22nd 04 06:49 PM


All times are GMT +1. The time now is 04:27 AM.

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"