![]() |
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
|
|||
|
|||
![]()
The Contacts folder is currently selected with an ContactItem selected
within that view. Using code in a outlook module as below. Set oObj = ActiveExplorer.Selection(1) If typename(oObj) = "ContactItem" then sName = oObj End if Prior to Outlook 2k7, If the Firstname and Lastname fields contain data the above code would return the Fullname now I get Lastname, Firstname ? What am I missing here. |
Ads |
#2
|
|||
|
|||
![]()
It's probably due to the setting for FileAs. I don't think it's Outlook 2007
specific. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Harold Little" wrote in message ... The Contacts folder is currently selected with an ContactItem selected within that view. Using code in a outlook module as below. Set oObj = ActiveExplorer.Selection(1) If typename(oObj) = "ContactItem" then sName = oObj End if Prior to Outlook 2k7, If the Firstname and Lastname fields contain data the above code would return the Fullname now I get Lastname, Firstname ? What am I missing here. |
#3
|
|||
|
|||
![]()
I have compared my Addresslist sort order and Contact Options,
verified the Default Fullname and Default FileAs matches my XP - Olk2k3 settings, still the Vista-Olk2k7 does not return the firstname lastname based on object's default. "Ken Slovak - [MVP - Outlook]" wrote in message ... It's probably due to the setting for FileAs. I don't think it's Outlook 2007 specific. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Harold Little" wrote in message ... The Contacts folder is currently selected with an ContactItem selected within that view. Using code in a outlook module as below. Set oObj = ActiveExplorer.Selection(1) If typename(oObj) = "ContactItem" then sName = oObj End if Prior to Outlook 2k7, If the Firstname and Lastname fields contain data the above code would return the Fullname now I get Lastname, Firstname ? What am I missing here. |
#4
|
|||
|
|||
![]()
PMJI with maybe a dumb question, but if you want the FullName, why don't you specifically return that property value rather than relying on the default property of the object?
Also, if Outlook is returning the FileAs value, as Ken suspects, all those options you looked at are probably irrelevant. What I would expect to be the determining factor is what's stored in the actual item. (And it could be the Subject property, not FileAs, that's being used.) -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "Little, Harold M" wrote in message ... I have compared my Addresslist sort order and Contact Options, verified the Default Fullname and Default FileAs matches my XP - Olk2k3 settings, still the Vista-Olk2k7 does not return the firstname lastname based on object's default. "Ken Slovak - [MVP - Outlook]" wrote in message ... It's probably due to the setting for FileAs. I don't think it's Outlook 2007 specific. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Harold Little" wrote in message ... The Contacts folder is currently selected with an ContactItem selected within that view. Using code in a outlook module as below. Set oObj = ActiveExplorer.Selection(1) If typename(oObj) = "ContactItem" then sName = oObj End if Prior to Outlook 2k7, If the Firstname and Lastname fields contain data the above code would return the Fullname now I get Lastname, Firstname ? What am I missing here. |
#5
|
|||
|
|||
![]()
The Object Browser doesn't indicate any default property for a contact item.
It looks like Subject is being supplied in Outlook 2003 and FileAs in Outlook 2007. However, as Sue says why depend on an undocumented implicit default property that might change from version to version and not use an explicit property that you want. If you want FullName then ask for it. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Sue Mosher [MVP-Outlook]" wrote in message ... PMJI with maybe a dumb question, but if you want the FullName, why don't you specifically return that property value rather than relying on the default property of the object? Also, if Outlook is returning the FileAs value, as Ken suspects, all those options you looked at are probably irrelevant. What I would expect to be the determining factor is what's stored in the actual item. (And it could be the Subject property, not FileAs, that's being used.) -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question regarding the FormRegion Object | DRuben | Add-ins for Outlook | 1 | August 30th 07 07:27 PM |
Outlook 2007 SEND button behavior | Burton Roberts | Outlook - General Queries | 1 | May 10th 07 03:19 PM |
Outlook 2007 strange behavior | PeterH | Outlook - General Queries | 1 | December 20th 06 02:57 PM |
is this default behavior for Delegates? | Michael Yorke | Outlook - Calandaring | 0 | December 13th 06 04:05 PM |
Send/Receive Settings Default Behavior | dkemper314 | Outlook - Installation | 0 | September 7th 06 07:58 PM |