Hello,
I have a word document that has a few dropdown lists in it. There is one dropdown list that I am trying to extract the contents from it. The Word document is saved with a .docx extension. I am using Word 2010 on Windows 7.
I have come across several different VB Scripts, but nothing seems to work. I provided a link to a VB script that I found. In the code I did change the part where it says .doc to .docx. The file is generated, but when opening it up the file is always blank.
Most of the scripts I am finding appear to be for Office versions 2003, which might be the issue. Other scripts also have part of the code in it saying “DropDown1” as in that is the properties name of the object, which I can never find the name of my dropdown that I am trying to extract from. The only thing I can think of is that these scripts are for if a user form was used, such as you bring up VB editor by pressin Alt + F11, then go to the Insert menu and click on UserForm. Here you can view the file name and properties of objects that are added, but I am not using this. I am strictly using the Word document itself. If you add the Developer tab and click on the dropdown button, that is what I am using. I know I can go to properties of that dropdown by selecting it and clicking properties, but it doesn’t appear that is the name of the object either since I tried to put what is listed in the “Title” of the properties in the place of “DropDown1” in the code, but it doesn’t work.
Like I said, I tried several different scripts to get this to work and can’t seem to get anything to work. I don’t care if I use script or some other option, is there a way to extract the list of the
dropdown and if so how?
Thanks for any help someone can provide,
Zerners