Autocomplete TextBox RRS feed

  • Question

  • Hi

    I searched a lot of threads but couldn’t find an answer to this question: How to get autocomplete feature in textbox of Microsoft Word?

    If anyone could please help it would be great.

    Many Thanks for your time.


    Monday, October 20, 2014 9:22 AM

All replies

  • What programming code are you using for this? This is a forum for programming questions, not general product use questions.

    If your question is about how to use the Autocorrect function then I suggest checking Word's Help function or posting a question about it on:

    Kind Regards, Rich ...

    Monday, October 20, 2014 10:06 AM
  • Are you talking about the Ribbon UI editBox control? Where is it located?
    Monday, October 20, 2014 10:58 AM
  • Hi Rich,

    I am using VBA/Macro to write program.

    I want to know if it's possible to have autocomplete function in MS Word textbox using VBA/Macro so that when we start typing it gives us related results from the pre-defined list.



    Monday, October 20, 2014 12:27 PM
  • Hi BV,

    Try this code:

        If AutoCorrect.Entries(YourACName).RichText = True Then
            Selection.TypeText AutoCorrect.Entries(YourACName).Name
            Selection.Collapse Word.WdCollapseDirection.wdCollapseEnd
            SendKeys.Send (" ")
            Selection.TypeText AutoCorrect.Entries(YouACName).Value
        End If
    Hope it helps

    Kind Regards, Rich ...

    Monday, October 20, 2014 1:17 PM