what do you mean "comfortable browsing registery"?? yep macros are enabled, the light settings is being saved thanks to you - but am trying to get the temp saved, am thinking maybe the UserForm_Initialize() only takes into account 1 getSetting?? umm...i've just copied and pasted what i have below. also just out of curiousity - is this ur full-time job rob??
VB Code:
Private tempSelection As String Private Sub TempVBox_Change() tempSelection = "Temp" NewTemp End Sub 'Temperature procedure which lets users enter a new temperature value that overwrites 'the current temperature value in the label. Public Sub NewTemp() Select Case tempSelection Case "Temp" TempVLabel.Caption = TempVBox.Value End Select End Sub Private Sub UserForm_Initialize() 'Read from the registry: msSelection = GetSetting("MyName", "MySection", "MyKey", "Medium") ' tempSelection = GetSetting("MyName", "TempSection", "TempKey", "Temp") UpdateCaption 'NewTemp End Sub Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer) 'Write to the registry: SaveSetting "MyName", "MySection", "MyKey", msSelection ' SaveSetting "TempName", "TempSection", "TempKey", tempSelection End Sub




Reply With Quote