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:
  1. Private tempSelection As String
  2.  
  3. Private Sub TempVBox_Change()
  4.      tempSelection = "Temp"
  5.         NewTemp
  6. End Sub
  7.  
  8. 'Temperature procedure which lets users enter a new temperature value that overwrites
  9. 'the current temperature value in the label.
  10. Public Sub NewTemp()
  11.         Select Case tempSelection
  12.         Case "Temp"
  13.         TempVLabel.Caption = TempVBox.Value
  14.         End Select
  15. End Sub
  16.  
  17. Private Sub UserForm_Initialize()
  18.     'Read from the registry:
  19.     msSelection = GetSetting("MyName", "MySection", "MyKey", "Medium")
  20.    ' tempSelection = GetSetting("MyName", "TempSection", "TempKey", "Temp")
  21.     UpdateCaption
  22.     'NewTemp
  23. End Sub
  24.  
  25. Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
  26.     'Write to the registry:
  27.     SaveSetting "MyName", "MySection", "MyKey", msSelection
  28.    ' SaveSetting "TempName", "TempSection", "TempKey", tempSelection
  29. End Sub