Hi Guys
I know this is virtually impossible
but couldn't help wondering
Is it possible to have an autofill option in a Normal cell or text box ( not combo or list box) ?
Thanks
Hi Guys
I know this is virtually impossible
but couldn't help wondering
Is it possible to have an autofill option in a Normal cell or text box ( not combo or list box) ?
Thanks
If you are talking about an ActiveX textbox, then someting like this could work
For a cell, you would need to run a Change event after data is entered, so you could use a list of abreviations, similar to above. These cannot be checked though, as each letter is entered.Private Sub TextBox1_Change() test End Sub Sub test() Select Case TextBox1.Text Case "a" TextBox1.Text = "all text entered" Case "b" TextBox1.Text = "better text entered" End Select End Sub
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'
I would suggest a slight alternative using Malcolm's basic idea
Private Sub TextBox1_AfterUpdate() With TextBox1 Select Case True Case "all text entered" Like .Text & "*" .Text = "all text entered" Case "better text entered" Like .Text & "*" .Text = "better text entered" End Select End With End Sub
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
Thank you