PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Display As in Outlook 2000 Problem

Reply

Display As in Outlook 2000 Problem

 
Thread Tools Rate Thread
Old 15-12-2006, 04:46 PM   #1
Peter Marchert
Guest
 
Posts: n/a
Default Display As in Outlook 2000 Problem


Hello,

I want to change the Field "Display As" in Outlook 2000 but I have a
problem to save the changes:

Sub ChangeDisplayAs()

Dim objContact As Outlook.ContactItem
Dim objRDOSession As Object
Dim objRDOContact As Object

Set objRDOSession = CreateObject("Redemption.RDOSession")

objRDOSession.Logon "", "", False, False, 0

Set objContact = Outlook.ActiveExplorer.Selection(1)

Debug.Print objContact.Email1DisplayName

Set objRDOContact =
objRDOSession.GetMessageFromID(objContact.EntryID,
objContact.Parent.StoreID)

objRDOContact.Email1DisplayName = "Test (test@server.de)"

Debug.Print objRDOContact.Email1DisplayName

objRDOContact.Save

objRDOContact.Display

Set objRDOContact = Nothing
Set objRDOSession = Nothing

End Sub

If I create a new contact manually I can edit the field Display As by
double clicking on the email address. After running this code I can not
edit the field Display As any more.

Can anybody help me, please?

Best regards
Peter

--
Peter Marchert
[EDV-Service Marchert]
Homepage: http://www.marchert.de
Excel- and Outlook programming

  Reply With Quote
Old 15-12-2006, 05:26 PM   #2
Dmitry Streblechenko
Guest
 
Posts: n/a
Default Re: Display As in Outlook 2000 Problem

Does that only happen in Outlook 2000? What is your version of Redemption?
What exactly happens (I don't have Outlook 2000 handy at the moment)? Does
the edit box for display name become disabled? Or you cannot click the
address at all?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Peter Marchert" <mpnews1@arcor.de> wrote in message
news:1166201193.591370.145990@l12g2000cwl.googlegroups.com...
> Hello,
>
> I want to change the Field "Display As" in Outlook 2000 but I have a
> problem to save the changes:
>
> Sub ChangeDisplayAs()
>
> Dim objContact As Outlook.ContactItem
> Dim objRDOSession As Object
> Dim objRDOContact As Object
>
> Set objRDOSession = CreateObject("Redemption.RDOSession")
>
> objRDOSession.Logon "", "", False, False, 0
>
> Set objContact = Outlook.ActiveExplorer.Selection(1)
>
> Debug.Print objContact.Email1DisplayName
>
> Set objRDOContact =
> objRDOSession.GetMessageFromID(objContact.EntryID,
> objContact.Parent.StoreID)
>
> objRDOContact.Email1DisplayName = "Test (test@server.de)"
>
> Debug.Print objRDOContact.Email1DisplayName
>
> objRDOContact.Save
>
> objRDOContact.Display
>
> Set objRDOContact = Nothing
> Set objRDOSession = Nothing
>
> End Sub
>
> If I create a new contact manually I can edit the field Display As by
> double clicking on the email address. After running this code I can not
> edit the field Display As any more.
>
> Can anybody help me, please?
>
> Best regards
> Peter
>
> --
> Peter Marchert
> [EDV-Service Marchert]
> Homepage: http://www.marchert.de
> Excel- and Outlook programming
>



  Reply With Quote
Old 15-12-2006, 07:11 PM   #3
Peter Marchert
Guest
 
Posts: n/a
Default Re: Display As in Outlook 2000 Problem

Hi Dmitry,

yes, that only happens in Outlook 2000, higher version works fine.

My version of Redemption is 4.3.0.585.

I try this: Creating a new contact manually by typing:

Field "Name...": Firstname Lastname
Field "E-Mail": test@server.de

Then I save and close the contact. After reopened them I overwrite the
E-Mail Address with "Firstname Lastname". Then I can double click on
this name and see details of the contact and can change the display
name.

If I want to save this changes Outlook ask me if I want to save a copy
in the standard contact folder because the contact was changend in
another window. OK, I did so and after that I can change the display
name without asking some thing by Outlook. Strange? No, Outlook!

With the following code I want to change the display name from
"Firstname Lastname" to "Lastname Firstname (test@srever.de)":

Sub ChangeDisplayAs()

Dim objContact As Outlook.ContactItem
Dim objRDOSession As Object
Dim objRDOContact As Object

Set objRDOSession = CreateObject("Redemption.RDOSession")

objRDOSession.Logon "", "", False, False, 0

Set objContact = Outlook.ActiveExplorer.Selection(1)

Debug.Print objContact.Email1DisplayName

Set objRDOContact =
objRDOSession.GetMessageFromID(objContact.EntryID,
objContact.Parent.StoreID)

objRDOContact.Email1DisplayName = "Lastname Firstname
(test@server.de)"

Debug.Print objRDOContact.Email1DisplayName

objRDOContact.Save

objRDOContact.Display

Set objRDOContact = Nothing
Set objRDOSession = Nothing

End Sub

If that procedure runs to my contact and I double click the name in the
email field it is only shown this email address into another little
window without details.

Thanks, Peter


Dmitry Streblechenko schrieb:

> Does that only happen in Outlook 2000? What is your version of Redemption?
> What exactly happens (I don't have Outlook 2000 handy at the moment)? Does
> the edit box for display name become disabled? Or you cannot click the
> address at all?
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
> "Peter Marchert" <mpnews1@arcor.de> wrote in message
> news:1166201193.591370.145990@l12g2000cwl.googlegroups.com...
> > Hello,
> >
> > I want to change the Field "Display As" in Outlook 2000 but I have a
> > problem to save the changes:
> >
> > Sub ChangeDisplayAs()
> >
> > Dim objContact As Outlook.ContactItem
> > Dim objRDOSession As Object
> > Dim objRDOContact As Object
> >
> > Set objRDOSession = CreateObject("Redemption.RDOSession")
> >
> > objRDOSession.Logon "", "", False, False, 0
> >
> > Set objContact = Outlook.ActiveExplorer.Selection(1)
> >
> > Debug.Print objContact.Email1DisplayName
> >
> > Set objRDOContact =
> > objRDOSession.GetMessageFromID(objContact.EntryID,
> > objContact.Parent.StoreID)
> >
> > objRDOContact.Email1DisplayName = "Test (test@server.de)"
> >
> > Debug.Print objRDOContact.Email1DisplayName
> >
> > objRDOContact.Save
> >
> > objRDOContact.Display
> >
> > Set objRDOContact = Nothing
> > Set objRDOSession = Nothing
> >
> > End Sub
> >
> > If I create a new contact manually I can edit the field Display As by
> > double clicking on the email address. After running this code I can not
> > edit the field Display As any more.
> >
> > Can anybody help me, please?
> >
> > Best regards
> > Peter
> >
> > --
> > Peter Marchert
> > [EDV-Service Marchert]
> > Homepage: http://www.marchert.de
> > Excel- and Outlook programming
> >


  Reply With Quote
Old 17-12-2006, 05:06 PM   #4
Peter Marchert
Guest
 
Posts: n/a
Default Re: Display As in Outlook 2000 Problem

Perhaps anybody can confirm if it works on his machine to change the
display name in Outlook 2000 or if not. This would be a help for me
too.

Thanks, Peter

Peter Marchert schrieb:

> Hi Dmitry,
>
> yes, that only happens in Outlook 2000, higher version works fine.
>
> My version of Redemption is 4.3.0.585.
>
> I try this: Creating a new contact manually by typing:
>
> Field "Name...": Firstname Lastname
> Field "E-Mail": test@server.de
>
> Then I save and close the contact. After reopened them I overwrite the
> E-Mail Address with "Firstname Lastname". Then I can double click on
> this name and see details of the contact and can change the display
> name.
>
> If I want to save this changes Outlook ask me if I want to save a copy
> in the standard contact folder because the contact was changend in
> another window. OK, I did so and after that I can change the display
> name without asking some thing by Outlook. Strange? No, Outlook!
>
> With the following code I want to change the display name from
> "Firstname Lastname" to "Lastname Firstname (test@srever.de)":
>
> Sub ChangeDisplayAs()
>
> Dim objContact As Outlook.ContactItem
> Dim objRDOSession As Object
> Dim objRDOContact As Object
>
> Set objRDOSession = CreateObject("Redemption.RDOSession")
>
> objRDOSession.Logon "", "", False, False, 0
>
> Set objContact = Outlook.ActiveExplorer.Selection(1)
>
> Debug.Print objContact.Email1DisplayName
>
> Set objRDOContact =
> objRDOSession.GetMessageFromID(objContact.EntryID,
> objContact.Parent.StoreID)
>
> objRDOContact.Email1DisplayName = "Lastname Firstname
> (test@server.de)"
>
> Debug.Print objRDOContact.Email1DisplayName
>
> objRDOContact.Save
>
> objRDOContact.Display
>
> Set objRDOContact = Nothing
> Set objRDOSession = Nothing
>
> End Sub
>
> If that procedure runs to my contact and I double click the name in the
> email field it is only shown this email address into another little
> window without details.
>
> Thanks, Peter
>
>
> Dmitry Streblechenko schrieb:
>
> > Does that only happen in Outlook 2000? What is your version of Redemption?
> > What exactly happens (I don't have Outlook 2000 handy at the moment)? Does
> > the edit box for display name become disabled? Or you cannot click the
> > address at all?
> >
> > Dmitry Streblechenko (MVP)
> > http://www.dimastr.com/
> > OutlookSpy - Outlook, CDO
> > and MAPI Developer Tool
> >
> > "Peter Marchert" <mpnews1@arcor.de> wrote in message
> > news:1166201193.591370.145990@l12g2000cwl.googlegroups.com...
> > > Hello,
> > >
> > > I want to change the Field "Display As" in Outlook 2000 but I have a
> > > problem to save the changes:
> > >
> > > Sub ChangeDisplayAs()
> > >
> > > Dim objContact As Outlook.ContactItem
> > > Dim objRDOSession As Object
> > > Dim objRDOContact As Object
> > >
> > > Set objRDOSession = CreateObject("Redemption.RDOSession")
> > >
> > > objRDOSession.Logon "", "", False, False, 0
> > >
> > > Set objContact = Outlook.ActiveExplorer.Selection(1)
> > >
> > > Debug.Print objContact.Email1DisplayName
> > >
> > > Set objRDOContact =
> > > objRDOSession.GetMessageFromID(objContact.EntryID,
> > > objContact.Parent.StoreID)
> > >
> > > objRDOContact.Email1DisplayName = "Test (test@server.de)"
> > >
> > > Debug.Print objRDOContact.Email1DisplayName
> > >
> > > objRDOContact.Save
> > >
> > > objRDOContact.Display
> > >
> > > Set objRDOContact = Nothing
> > > Set objRDOSession = Nothing
> > >
> > > End Sub
> > >
> > > If I create a new contact manually I can edit the field Display As by
> > > double clicking on the email address. After running this code I can not
> > > edit the field Display As any more.
> > >
> > > Can anybody help me, please?
> > >
> > > Best regards
> > > Peter
> > >
> > > --
> > > Peter Marchert
> > > [EDV-Service Marchert]
> > > Homepage: http://www.marchert.de
> > > Excel- and Outlook programming
> > >


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off