![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
How can I access the from and to fields of a message in vbscript
within that message? Thanks, Gil |
Ads |
#2
|
|||
|
|||
![]()
MailItem object: To, Recipients, SenderName, SenderEmailAddress properties
Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Gil" wrote in message oups.com... How can I access the from and to fields of a message in vbscript within that message? Thanks, Gil |
#3
|
|||
|
|||
![]()
Is there a good reference for this type of info?
Pardon my ignorance but would this work to retrieve the sender? Set objFormTab = Item.GetInspector.ModifiedFormPages("Message") Set objSender = objFormTab.MailItem("SenderName") Thanks, Gil On May 1, 2:02 pm, "Dmitry Streblechenko" wrote: MailItem object: To, Recipients, SenderName, SenderEmailAddress properties |
#4
|
|||
|
|||
![]()
See MSDN and Outlook VBA help file. http://www.outlookcode.com is good place
to start. The code should be Set objSender = Item.SenderName Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Gil" wrote in message ups.com... Is there a good reference for this type of info? Pardon my ignorance but would this work to retrieve the sender? Set objFormTab = Item.GetInspector.ModifiedFormPages("Message") Set objSender = objFormTab.MailItem("SenderName") Thanks, Gil On May 1, 2:02 pm, "Dmitry Streblechenko" wrote: MailItem object: To, Recipients, SenderName, SenderEmailAddress properties |
#5
|
|||
|
|||
![]()
Actually there should be no "set" since SenderName property is a string, not
an object: strSender = Item.SenderName Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Dmitry Streblechenko" wrote in message ... See MSDN and Outlook VBA help file. http://www.outlookcode.com is good place to start. The code should be Set objSender = Item.SenderName Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Gil" wrote in message ups.com... Is there a good reference for this type of info? Pardon my ignorance but would this work to retrieve the sender? Set objFormTab = Item.GetInspector.ModifiedFormPages("Message") Set objSender = objFormTab.MailItem("SenderName") Thanks, Gil On May 1, 2:02 pm, "Dmitry Streblechenko" wrote: MailItem object: To, Recipients, SenderName, SenderEmailAddress properties |
#6
|
|||
|
|||
![]()
Thanks! This is in VB not VBA can I reference items like that in VB on
a message form? |
#7
|
|||
|
|||
![]()
All set now! I need a good vb introduction book that is techincal, not
point and click through forms any reccomendations? |
#8
|
|||
|
|||
![]()
If it is VB, not VBA, your code is not running in a form; which message form
do you mean? Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Gil" wrote in message ups.com... Thanks! This is in VB not VBA can I reference items like that in VB on a message form? |
#9
|
|||
|
|||
![]()
Do you mean VB as language, not Outlook specific? I don't use VB at all, so
I can't recomment anything. For Outlook specific books, see http://www.outlookcode.com/d/library.htm Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Gil" wrote in message ups.com... All set now! I need a good vb introduction book that is techincal, not point and click through forms any reccomendations? |
#10
|
|||
|
|||
![]()
On May 1, 2:45 pm, "Dmitry Streblechenko" wrote:
Do you mean VB as language, not Outlook specific? I don't use VB at all, so I can't recomment anything. For Outlook specific books, seehttp://www.outlookcode.com/d/library.htm Dmitry Streblechenko (MVP)http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Gil" wrote in message ups.com... All set now! I need a good vb introduction book that is techincal, not point and click through forms any reccomendations?- Hide quoted text - - Show quoted text - No it's outlook specific VB, got to by going Tools-Form-Design This Form-Form-View Code Not a pretty place to write code. I'm wondering if I should be using the VBA portion instead. Maybe a book will tell me that!! |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
vbScript Not Firing | Boyd | Outlook - Using Forms | 2 | September 29th 06 11:58 PM |
Outlook Contacts - Converting User-defined Item fields to Folder fields | [email protected] | Outlook - Using Contacts | 1 | September 29th 06 10:17 PM |
formating multiple fields creates duplicate fields | [email protected] | Outlook - Using Forms | 0 | April 18th 06 04:59 PM |
VBA or VBScript | goshute | Outlook and VBA | 1 | March 29th 06 02:01 AM |