Hello again Stack Overflow -
Working with a userform in Excel 2010 VBA, I have a textbox called "reviewerName" which should to be given a default value set by the user. Right now I have the default as:
Private Sub userform_initialize()
reviewerName.text = "Your name here"
End Sub
When I open the form, the already has "Your name here" filled out on the textbox. Great! But if someone else overwrites it with their name, how do I set the default to the new name? If I close and open the form, can the reviewerName = "Bob"? What is the command to update the reviewerName variable so that it is static and can be used next time the workbook is opened?
Thanks!
userform_activate()event instead ofuserform_initialize()? - JNevillApplication.UserNameorEnviron$("USERNAME"). - Comintern