I have created a UserForm in the MSWord 2002 Visual Basic Editor, but I am seeking the necessary VBA code to make these work as I would like.
Basically, I am wanting to open a Word document, click on a Toolbar button which opens my UserForm, and then be able to select text from another separate word document using the Userform (see below for further explanation) which is then able to be inserted into the currently open Word document.
I am after VBA code that will enable the following to occur (please note that I have already created the UserForm and Toolbar button):
UserForm1 contains the following controls:
VBA Code 1
I want ComboBox1 to be populated by several (up to 10) "Folder Names" that are located within another Folder on my C:drive, for example at C:SOAtemplateSOA Library(up to 10 folder names).
VBA Code 2
I would then like ListBox1 to be populated by all Word document "file names" that are located any Folder that is selected from ComboBox1 eg. C:SOAtemplateSOA LibraryFundComments(up to 10 word document names).
VBA Code 3
When I click on one of the Word document "File Names" that have been populated into ListBox1, I would like the text that is located within this separate Word document to populate Textbox1.
Finally, after viewing the relevant "Text" in TextBox1, I would like to be able to insert this text into the currently open Word document (wherever cursor is located in document) by clicking on CommanButton1. I would also like this action to close UserForm1.
20 pekerja bebas membida secara purata $72 untuk pekerjaan ini
I am working in a prepress company and pretty much involved VBA modules. I'm very much interested in doing this job for you. Hoping you would buy time to allow me to do it for you.