I didn't see a post on this so I'll toss it out here.

Just how do you write Hex values to a Binary registry key?
The registry demo program from this site chokes with a Type Mismatch eror when you enter a value such as 1F instead of 1.

Dim byTemp(2) As Byte

byTemp(0) = CByte(txtByte(0)) <---The error occurs here
byTemp(1) = CByte(txtByte(1))
byTemp(2) = CByte(txtByte(2))

SaveSettingByte HKEY_CURRENT_USER, "Software\VBW\RegistryDemo", "Byte", byTemp

Should something other than cbyte be used?
Or possibly change it to CByte("&H" & txtByte(0)) ?

Thanks,
James