Get the name of the users default signature

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have manganed to get the user name from WSHNetwork and have formatted and
inserted everything else I need for the custom message but I cannot find how
to get the name of the user's default signture for new messages. Don't want
to change it just get the name for insertion.

Tried to search fully before posting. Thanks in advance.
 
In Outlook 2003 you can have a default signature for each account. The names
are stored in the registry, e.g. under:

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging
Subsystem\Profiles\[User]\9375CFF0413111d3B88A00104B2A6676\00000002

Here 00000002 is one of the accounts. There might be more, look for
'newSignature' and 'Reply-Forward Signature'.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - Categorize Outlook data:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>

Am Wed, 25 Apr 2007 10:32:03 -0700 schrieb brightz:
 
Thanks Michael- I am probably being dense but how do I pull the value from
that key. I can get the path to the registry but not that actual value in
key 00002/ under new signature.

lori

Michael Bauer said:
In Outlook 2003 you can have a default signature for each account. The names
are stored in the registry, e.g. under:

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging
Subsystem\Profiles\[User]\9375CFF0413111d3B88A00104B2A6676\00000002

Here 00000002 is one of the accounts. There might be more, look for
'newSignature' and 'Reply-Forward Signature'.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - Categorize Outlook data:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>

Am Wed, 25 Apr 2007 10:32:03 -0700 schrieb brightz:
I have manganed to get the user name from WSHNetwork and have formatted and
inserted everything else I need for the custom message but I cannot find how
to get the name of the user's default signture for new messages. Don't want
to change it just get the name for insertion.

Tried to search fully before posting. Thanks in advance.
 
It might be that the value doesn't exist.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - Categorize Outlook data:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>

Am Wed, 9 May 2007 10:45:00 -0700 schrieb brightz:
Thanks Michael- I am probably being dense but how do I pull the value from
that key. I can get the path to the registry but not that actual value in
key 00002/ under new signature.

lori

Michael Bauer said:
In Outlook 2003 you can have a default signature for each account. The names
are stored in the registry, e.g. under:

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging
Subsystem\Profiles\[User]\9375CFF0413111d3B88A00104B2A6676\00000002

Here 00000002 is one of the accounts. There might be more, look for
'newSignature' and 'Reply-Forward Signature'.
Am Wed, 25 Apr 2007 10:32:03 -0700 schrieb brightz:
 
It's in the key
My signature name is lori
Value is
"New Signature"=hex:4c,00,6f,00,72,00,69,00,00,00 L.o.r.i

curious-


Michael Bauer said:
It might be that the value doesn't exist.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - Categorize Outlook data:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>

Am Wed, 9 May 2007 10:45:00 -0700 schrieb brightz:
Thanks Michael- I am probably being dense but how do I pull the value from
that key. I can get the path to the registry but not that actual value in
key 00002/ under new signature.

lori

Michael Bauer said:
In Outlook 2003 you can have a default signature for each account. The names
are stored in the registry, e.g. under:

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging
Subsystem\Profiles\[User]\9375CFF0413111d3B88A00104B2A6676\00000002

Here 00000002 is one of the accounts. There might be more, look for
'newSignature' and 'Reply-Forward Signature'.
Am Wed, 25 Apr 2007 10:32:03 -0700 schrieb brightz:

I have manganed to get the user name from WSHNetwork and have formatted
and
inserted everything else I need for the custom message but I cannot find
how
to get the name of the user's default signture for new messages. Don't
want
to change it just get the name for insertion.

Tried to search fully before posting. Thanks in advance.
 
So probably your code is wrong. What's your code?

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - Categorize Outlook data:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>


Am Wed, 9 May 2007 15:39:01 -0700 schrieb brightz:
It's in the key
My signature name is lori
Value is
"New Signature"=hex:4c,00,6f,00,72,00,69,00,00,00 L.o.r.i

curious-


Michael Bauer said:
It might be that the value doesn't exist.
Am Wed, 9 May 2007 10:45:00 -0700 schrieb brightz:
Thanks Michael- I am probably being dense but how do I pull the value from
that key. I can get the path to the registry but not that actual value in
key 00002/ under new signature.

lori

:


In Outlook 2003 you can have a default signature for each account. The names
are stored in the registry, e.g. under:

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging
Subsystem\Profiles\[User]\9375CFF0413111d3B88A00104B2A6676\00000002

Here 00000002 is one of the accounts. There might be more, look for
'newSignature' and 'Reply-Forward Signature'.
Am Wed, 25 Apr 2007 10:32:03 -0700 schrieb brightz:

I have manganed to get the user name from WSHNetwork and have formatted
and
inserted everything else I need for the custom message but I cannot find
how
to get the name of the user's default signture for new messages. Don't
want
to change it just get the name for insertion.

Tried to search fully before posting. Thanks in advance.
 
That looks perfectly normal. Like many Outlook profile settings, signature names in in Unicode, so if you're looking for a simple ASCII string, you have to do some parsing. This function should be helpful:

Public Function Hex4ToString(Data As String) As String
Dim strTemp As String
Dim strAll As String
Dim i As Integer
For i = 1 To Len(Data) Step 4
strTemp = Mid(Data, i, 4)
strTemp = "&H" & Right(strTemp, 2) & Left(strTemp, 2)
strAll = strAll & ChrW(CDec(strTemp))
Next
Hex4ToString = strAll
End Function

For example, hex4tostring("4c006f00720069000000") returns "Lori".
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers


brightz said:
It's in the key
My signature name is lori
Value is
"New Signature"=hex:4c,00,6f,00,72,00,69,00,00,00 L.o.r.i

curious-


Michael Bauer said:
It might be that the value doesn't exist.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - Categorize Outlook data:
<http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6>

Am Wed, 9 May 2007 10:45:00 -0700 schrieb brightz:
Thanks Michael- I am probably being dense but how do I pull the value from
that key. I can get the path to the registry but not that actual value in
key 00002/ under new signature.

lori

:


In Outlook 2003 you can have a default signature for each account. The names
are stored in the registry, e.g. under:

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging
Subsystem\Profiles\[User]\9375CFF0413111d3B88A00104B2A6676\00000002

Here 00000002 is one of the accounts. There might be more, look for
'newSignature' and 'Reply-Forward Signature'.
Am Wed, 25 Apr 2007 10:32:03 -0700 schrieb brightz:

I have manganed to get the user name from WSHNetwork and have formatted
and
inserted everything else I need for the custom message but I cannot find
how
to get the name of the user's default signture for new messages. Don't
want
to change it just get the name for insertion.

Tried to search fully before posting. Thanks in advance.
 
Back
Top