It does work but it is not really what I need as I didn't know what I needed when I asked the question. I need a text box that will expand down as you type more, but one that has default text "Please type text here" that will disappear when you click in it for the first time. The spreadsheet will also be locked and I will still want to be able to enter data in the text box. I think that is all I want.
Thanks,
Private Sub TextBox1_Change()
TextBox1.Width = 200
End Sub
Private Sub TextBox1_GotFocus()
TextBox1.Width = 200
If TextBox1 = "Please type notes here" Then
TextBox1 = ""
End If
End Sub
Private Sub TextBox1_LostFocus()
TextBox1.Width = 200
If TextBox1 = "" Then
TextBox1 = "Please type notes here"
End If
End Sub
I put the code of lostfocus() in the workbook open sub and it couldn't find the text box. It is an active x text box, is that the correct text box?
TextBox1.Width = 200