|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Writing Binary value to Registry in VBA
I want to create a new binary value in the Registry under HKCU\Software\Microsoft\Office\11.0\Outlook\Categories. In essence, I want to take a subset of the Outlook Categories from MasterList and write a similar value named WorkList. I can read the MasterList and decode it, but I can't find the right syntax to write the new value. I have created an integer array with the values I want, but using the following syntax, I get a run-time error 13 (Type Mismatch). I can't find which element is causing the error. Dim intArray() As Integer <code to populate the array> Set objWSHShell = CreateObject("Wscript.shell") objWSHShell.RegWrite "HKCU\Software\Microsoft\Office\11.0\Outlook\Categories\TestList", intArray, "REG_BINARY" I have also tried a variant array, but same result. Can anyone help, please? -- Nick |
|||||||||||||||||||||||