I believe he added it using the Active X controls (in Excel 2007) ... from the developers tab, design mode / Insert / text box (from the Active X section)
I believe he added it using the Active X controls (in Excel 2007) ... from the developers tab, design mode / Insert / text box (from the Active X section)
Hello JP,
Add this code to the TextBox's GotFocus event on the worksheet. Be sure to change the name of the TextBox to match yours.
![]()
Private Sub TextBox1_GotFocus() If Not TextBox1.Value Like Chr(34) & "*" & Chr(34) Then TextBox1.Value = Chr(34) & TextBox1.Value & Chr(34) End If TextBox1.SelStart = Len(TextBox1.Value) - 1 End Sub
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Starbelow the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks