G'day "Ulf Nilsson" <anonymous@discussions.microsoft.com>,
The VBA Developer's Handbook by Ken Getz et al has loads of stuff on
this.
Steve Hudson - Word Heretic
steve from wordheretic.com (Email replies require payment)
Without prejudice
Ulf Nilsson reckoned:
>Hi,
>I add the key by using:
[quoted text clipped - 9 lines]
>
>/ Ulf
Ulf Nilsson - 22 Feb 2005 08:15 GMT
And the answer is ...
/ Ulf
>-----Original Message-----
>G'day "Ulf Nilsson" <anonymous@discussions.microsoft.com>,
[quoted text clipped - 12 lines]
>>I add the key by using:
>>System.PrivateProfileString
(Empty, "HKEY_CURRENT_USER\Software\Apps\AV_Word", "Settin
>>gs") = "ABC"
>>
[quoted text clipped - 7 lines]
>
>.
Word Heretic - 22 Feb 2005 11:49 GMT
G'day "Ulf Nilsson" <anonymous@discussions.microsoft.com>,
Very long and available in a book for purchase. If you would care to
pay me I might give more of one...
Steve Hudson - Word Heretic
steve from wordheretic.com (Email replies require payment)
Without prejudice
Ulf Nilsson reckoned:
>And the answer is ...
>
[quoted text clipped - 33 lines]
>>
>>.
Hi Ulf,
There is nothing in the built-in commands in VBA that will do this. The
System.PrivateProfileString property won't delete keys, and the SaveSetting,
DeleteSetting command sonly work on a small area of the registry
You can use Karl Peterson's RegSettings code available from
http://vb.mvps.org/samples/project.asp?id=RegSettings
This module provides an equivalent of DeleteSetting etc but which can be
applied to any key amd not just the ones within the area that the built-in
commands can access.
It was written in VB rather than VBA, but don't worry, you can drop the
CRegSettings.cls class module straight into your Word VBA project and it
will work.

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
> Hi,
> I add the key by using:
[quoted text clipped - 9 lines]
>
> / Ulf
Ulf Nilsson - 22 Feb 2005 11:55 GMT
Thanks!
/ Ulf
>-----Original Message-----
>Hi Ulf,
[quoted text clipped - 17 lines]
>> I add the key by using:
>> System.PrivateProfileString
(Empty, "HKEY_CURRENT_USER\Software\Apps\AV_Word", "Settin
>> gs") = "ABC"
>>
[quoted text clipped - 7 lines]
>
>.