Retrieve my E-Mail Address in VBA

S

Scorcel

Anybody please help me how to retrieve my e-mail address
using Visual Basic Code or VB?

Thank you very much.
 
S

Scorcel

Thanks a lot for your help, but it only shows my Complete
Name and not my complete e-mail address (like
(e-mail address removed))

Again thanks a lot!
 
M

Michael Bauer

Ok, that should work with CDO 1.21.

("Should" because I´m a little confused at present: My own CurrentUser
tells me, I´m unknown?!)

--
Viele Grüße
Michael Bauer


Thanks a lot for your help, but it only shows my Complete
Name and not my complete e-mail address (like
(e-mail address removed))

Again thanks a lot!
 
S

Sue Mosher [MVP-Outlook]

It's somewhat dependent on the Outlook version, as well as the profile
accounts. Most recent versions don't report a CurrentUser address, unless
it's an Exchange profile.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Scorcel

OK, Again thanks so much.
-----Original Message-----
Ok, that should work with CDO 1.21.

("Should" because I´m a little confused at present: My own CurrentUser
tells me, I´m unknown?!)

--
Viele Grüße
Michael Bauer


Thanks a lot for your help, but it only shows my Complete
Name and not my complete e-mail address (like
(e-mail address removed))

Again thanks a lot!


.
 
M

Michael Bauer

Hi Sue,

thanks. I´m still working with OL2k without Exchange. Via the Outlook
object model there is a CurrentUser address, via CDO it isn´t.
 
S

Scorcel

But my Outlook is in the Mail Exchange and I could not see
my email address using the code you gave. Thanks again.
 
M

Michael Bauer

Did you try it via CDO?


--
Viele Grüße
Michael Bauer


But my Outlook is in the Mail Exchange and I could not see
my email address using the code you gave. Thanks again.
 
G

Guest

OK so which is it?

All I want to do is compare the to e-mail address with my own one, if we can
do this in CDO, has anyone got a few sample code lines?
 
S

Sue Mosher [MVP-Outlook]

Outlook version and mail server(s)?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

Running Outlook 2003, with exchange 2003, I have now started to look and see
if redemption can help me at all. It appears there is a parameter in RAW mapi
PR_SMTP_ADDRESS, I suspect this is the parameter I am after, I now have
redemption installed, where do I find values for all the hex codes used?
 
S

Sue Mosher [MVP-Outlook]

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top