' ********************************************
' Private Methods
' ********************************************
Private Function SubKey(Optional ByVal Section As String = "") As String
' Build SubKey from known values
SubKey = "Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections"
If Len(Section) Then
SubKey = SubKey & "\" & Section
End If
End Function
Is 'DefaultConnections' another key from ...\internet settings\connections?
If it is then you'll need to add that to: -
Code:
' ********************************************
' Private Methods
' ********************************************
Private Function SubKey(Optional ByVal Section As String = "") As String
' Build SubKey from known values
SubKey = ".DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections"
If Len(Section) Then
SubKey = SubKey & "\" & Section
End If
End Function
For example
Code:
' ********************************************
' Private Methods
' ********************************************
Private Function SubKey(Optional ByVal Section As String = "") As String
' Build SubKey from known values
SubKey = ".DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\DefaultConnections"
If Len(Section) Then
SubKey = SubKey & "\" & Section
End If
End Function
It might help if you do a screen print of the structure in Registry Edit showing the values, I colud then re-create them on a machine here as I haven't got them.