Word Combobox not working

  • Good morning AdrianW


    Thank you again for your help.


    I did try the code and it worked.


    I thank you very very much for your help.


    Now I have another question for you!!!


    I went into word to see if I can create a combobox. I used the code


    Hope I am using this code tag thing right if not you will let me know!


    Code
    Private Sub ComboBox1_Change()
      ComboBox1.ColumnCount = 1
      'Load data into ComboBox
      ComboBox1.List() = Array("Alicia Knights", "Darcell Abraham", "Kelly-Ann Rojas", "Roxanne Neptune", "Tamara Yee")
    End Sub


    Once again the code only works if I complie and run every time I open the document. I want the combobox to be activated without having to complie and run every time I open the word document.


    So I tried the code in This Document. The code I used was


    Code
    Private Sub Document_Open()
      ComboBox1.ColumnCount = 1
      'Load data into ComboBox
      ComboBox1.List() = Array("Alicia Knights", "Darcell Abraham", "Kelly-Ann Rojas", "Roxanne Neptune", "Tamara Yee")
    End Sub


    It worked, but when I closed the document and opened it there was nothing in the combobox to select. What am I doing wrong?


    Can you help me on this please.


    Thanks Tessa!!!!

  • Re: Code not working


    Your code works fine in this Word Document. Did you use the Controls Toolbar?


    Also, please post Word questions in the Word forum

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!