Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ron's Code is greaqt --new at programming excel.
The code you give in MSN for send mail is great I need to automate one more option from outlook, the voting options Want to add automatic message options option to Ron's code Example: If IsNull(Vote) = False Then .VotingOptions = Vote End If Select Case Urgency Case 2 .Importance = olImportanceHigh Case 0 .Importance = olImportanceLow Case Else .Importance = olImportanceNormal End Select but this is not working in excel. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi JC
Do you use Late or Early binding Do you have the Importance code working ? -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "JC" wrote in message ... Ron's Code is greaqt --new at programming excel. The code you give in MSN for send mail is great I need to automate one more option from outlook, the voting options Want to add automatic message options option to Ron's code Example: If IsNull(Vote) = False Then .VotingOptions = Vote End If Select Case Urgency Case 2 .Importance = olImportanceHigh Case 0 .Importance = olImportanceLow Case Else .Importance = olImportanceNormal End Select but this is not working in excel. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
No the code isn't working
I think I also need the correct binding code "Ron de Bruin" wrote: Hi JC Do you use Late or Early binding Do you have the Importance code working ? -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "JC" wrote in message ... Ron's Code is greaqt --new at programming excel. The code you give in MSN for send mail is great I need to automate one more option from outlook, the voting options Want to add automatic message options option to Ron's code Example: If IsNull(Vote) = False Then .VotingOptions = Vote End If Select Case Urgency Case 2 .Importance = olImportanceHigh Case 0 .Importance = olImportanceLow Case Else .Importance = olImportanceNormal End Select but this is not working in excel. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this one JC
Sub Mail_small_Text_Outlook() ' Is working in Office 2000-2007 Dim OutApp As Object Dim OutMail As Object Dim strbody As String Set OutApp = CreateObject("Outlook.Application") OutApp.Session.Logon Set OutMail = OutApp.CreateItem(0) strbody = "Hi there" & vbNewLine & vbNewLine & _ "This is line 1" & vbNewLine & _ "This is line 2" & vbNewLine & _ "This is line 3" & vbNewLine & _ "This is line 4" On Error Resume Next With OutMail .To = " .CC = "" .BCC = "" .Subject = "This is the Subject line" .Body = strbody ' 0 = Low, 2 = High, 1 = Normal .Importance = 2 .VotingOptions = "Approved;Disapproved" .Send 'or use .Display End With On Error GoTo 0 Set OutMail = Nothing Set OutApp = Nothing End Sub -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "JC" wrote in message ... No the code isn't working I think I also need the correct binding code "Ron de Bruin" wrote: Hi JC Do you use Late or Early binding Do you have the Importance code working ? -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "JC" wrote in message ... Ron's Code is greaqt --new at programming excel. The code you give in MSN for send mail is great I need to automate one more option from outlook, the voting options Want to add automatic message options option to Ron's code Example: If IsNull(Vote) = False Then .VotingOptions = Vote End If Select Case Urgency Case 2 .Importance = olImportanceHigh Case 0 .Importance = olImportanceLow Case Else .Importance = olImportanceNormal End Select but this is not working in excel. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Works great. Thank you
How about the Delivery option? to return responses to group mailbox and how do I set the send response option with EDIT THE RESPONSE before sending option with orig message included in the response "Ron de Bruin" wrote: Try this one JC Sub Mail_small_Text_Outlook() ' Is working in Office 2000-2007 Dim OutApp As Object Dim OutMail As Object Dim strbody As String Set OutApp = CreateObject("Outlook.Application") OutApp.Session.Logon Set OutMail = OutApp.CreateItem(0) strbody = "Hi there" & vbNewLine & vbNewLine & _ "This is line 1" & vbNewLine & _ "This is line 2" & vbNewLine & _ "This is line 3" & vbNewLine & _ "This is line 4" On Error Resume Next With OutMail .To = " .CC = "" .BCC = "" .Subject = "This is the Subject line" .Body = strbody ' 0 = Low, 2 = High, 1 = Normal .Importance = 2 .VotingOptions = "Approved;Disapproved" .Send 'or use .Display End With On Error GoTo 0 Set OutMail = Nothing Set OutApp = Nothing End Sub -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "JC" wrote in message ... No the code isn't working I think I also need the correct binding code "Ron de Bruin" wrote: Hi JC Do you use Late or Early binding Do you have the Importance code working ? -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "JC" wrote in message ... Ron's Code is greaqt --new at programming excel. The code you give in MSN for send mail is great I need to automate one more option from outlook, the voting options Want to add automatic message options option to Ron's code Example: If IsNull(Vote) = False Then .VotingOptions = Vote End If Select Case Urgency Case 2 .Importance = olImportanceHigh Case 0 .Importance = olImportanceLow Case Else .Importance = olImportanceNormal End Select but this is not working in excel. |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi JC
You can see all Outlook options if you go into Early binding http://www.rondebruin.nl/mail/folder3/smallmessage.htm See on the bottom of the page Good night -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "JC" wrote in message ... Works great. Thank you How about the Delivery option? to return responses to group mailbox and how do I set the send response option with EDIT THE RESPONSE before sending option with orig message included in the response "Ron de Bruin" wrote: Try this one JC Sub Mail_small_Text_Outlook() ' Is working in Office 2000-2007 Dim OutApp As Object Dim OutMail As Object Dim strbody As String Set OutApp = CreateObject("Outlook.Application") OutApp.Session.Logon Set OutMail = OutApp.CreateItem(0) strbody = "Hi there" & vbNewLine & vbNewLine & _ "This is line 1" & vbNewLine & _ "This is line 2" & vbNewLine & _ "This is line 3" & vbNewLine & _ "This is line 4" On Error Resume Next With OutMail .To = " .CC = "" .BCC = "" .Subject = "This is the Subject line" .Body = strbody ' 0 = Low, 2 = High, 1 = Normal .Importance = 2 .VotingOptions = "Approved;Disapproved" .Send 'or use .Display End With On Error GoTo 0 Set OutMail = Nothing Set OutApp = Nothing End Sub -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "JC" wrote in message ... No the code isn't working I think I also need the correct binding code "Ron de Bruin" wrote: Hi JC Do you use Late or Early binding Do you have the Importance code working ? -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "JC" wrote in message ... Ron's Code is greaqt --new at programming excel. The code you give in MSN for send mail is great I need to automate one more option from outlook, the voting options Want to add automatic message options option to Ron's code Example: If IsNull(Vote) = False Then .VotingOptions = Vote End If Select Case Urgency Case 2 .Importance = olImportanceHigh Case 0 .Importance = olImportanceLow Case Else .Importance = olImportanceNormal End Select but this is not working in excel. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
send mail without outlook | Excel Programming | |||
Macro to send a mail to outlook | Excel Discussion (Misc queries) | |||
How can I use Outlook express to send mail rather than Outlook by VBA code | Excel Programming | |||
Help for Send Mail via Outlook | Excel Programming | |||
How can I use Outlook express to send mail rather than Outlook by VBA code | Excel Programming |