No listbox "list" property and related problems
I am trying to write a little program/macro that opens a WORD file, you enter some data in text and combobox 's and then use search/replace function, then save file. I am getting to VB through the Macro function in Word.
Two issues:
1. When I have the form up and select the combobox and review the properties, there is NO "List" property. The properties table goes from "Left" to "Listrows" to "Liststyle" but no "List". When I use code to additem, that doesn't work either. I searched all the VB sites and they all said I can just use the "List" property to add the data items in the list. But it's not there.
Re: No listbox "list" property and related problems
Re: No listbox "list" property and related problems
I got the word file to load, but still cannot get the combo box data to load. I just don't know what I'm doing and there is no "list" property on the combobox properties.
Re: No listbox "list" property and related problems
Are you using Word, or VB6? You need to show some code (plus the screen print from before)
Re: No listbox "list" property and related problems
Hello thank you.
I am launching VB from word but using VB6.3. This is the code to change text.
This is ugly because I have changed it a few times. this code find the text string and replaces it with ""...ie nothing/null. So that part is working.
I think I am not declaring my variables right to capture the input data...? Here is the code for this now:
(see post below for code)
Re: No listbox "list" property and related problems
please see next post. thanks
1 Attachment(s)
Re: No listbox "list" property and related problems
Attached is the screen print...this is what main problem is...the is no "List" property for my combo box and I can't seem to write code that will load the data into the drop down list.
Re: No listbox "list" property and related problems
Looking for answer to previous post...thanks
Re: No listbox "list" property and related problems
Even if the List property is not accessible throu the property sheet, it is present.
Yo can do:
Code:
ComboBox1.AddItem "Item1"
x = ComboBox1.List(0)
When you examine x it contains "Item1"