A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Get the name of the users default signature



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 25th 07, 07:32 PM posted to microsoft.public.outlook.program_vba
brightz
external usenet poster
 
Posts: 8
Default Get the name of the users default signature

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.


Ads
  #2  
Old April 26th 07, 06:56 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Get the name of the users default signature


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.

  #3  
Old May 9th 07, 07:45 PM posted to microsoft.public.outlook.program_vba
brightz
external usenet poster
 
Posts: 8
Default Get the name of the users default signature

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 [MVP - Outlook]" wrote:


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.


  #4  
Old May 9th 07, 09:59 PM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Get the name of the users default signature


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 [MVP - Outlook]" wrote:


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.


  #5  
Old May 10th 07, 12:39 AM posted to microsoft.public.outlook.program_vba
brightz
external usenet poster
 
Posts: 8
Default Get the name of the users default signature

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 [MVP - Outlook]" wrote:


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 [MVP - Outlook]" wrote:


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.


  #6  
Old May 10th 07, 08:44 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Get the name of the users default signature


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 [MVP - Outlook]" wrote:


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 [MVP - Outlook]" wrote:


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.


  #7  
Old May 10th 07, 02:17 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Get the name of the users default signature

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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"brightz" wrote in message ...
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 [MVP - Outlook]" wrote:


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 [MVP - Outlook]" wrote:


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.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Set Default Signature Ben Outlook and VBA 4 March 1st 07 01:22 PM
Auto add outlook default signature Kevin Outlook - Using Forms 5 November 25th 06 04:18 AM
Detect default signature paul Outlook and VBA 1 September 15th 06 06:37 AM
Not able to add default Signature antonio Outlook and VBA 5 May 12th 06 07:32 AM
setting signature as default drmeh Outlook and VBA 0 March 6th 06 01:59 AM


All times are GMT +1. The time now is 12:57 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.