When using the below code to save a registration key for our app, a new user (I can't replciate it) is getting a runtime error 5 message.

For the life of me I can't see how the error is being generated I could add "On Error Resume Next" but each time the user opens the program it will ask for a registration key again which we can't have happen?

MSDN states "An error occurs if the key setting can’t be saved for any reason." Not very helpful

Does the user need to have admin privilages for the key to be saved in the registry? Any suggestions?

VB Code:
  1. Private Sub SaveRegSetting(sRegText As String)
  2.                    
  3.       SaveSetting "ProgramName", "Registration", "Entry", sRegText
  4.  
  5. End Sub