PDA

View Full Version : Import images in word in order of selection HELP!!



igor777
03-26-2014, 12:07 PM
Hello!
I'm writting vba script for word that imports pictures and formatting them. But, it has to import pictures in order how I selected them in folder. Example, if I select first Picture 1 then Picture 4 then Picture 2 then Picture 8, it has to import first Picture1 - Picture4- Picture 2 -Picture 8, in that order. Pls help me!Thank you!

macropod
03-26-2014, 03:08 PM
Sadly, that seems to be a Windows thing, and all versions behave that way. IIRC, you have to select the first picture, then the last one, followed by the remainder in the correct order.

igor777
03-27-2014, 12:20 AM
Ok thank you. So, there is no way to do that neither in programming vba script?? Because I'm doing a project on college, and my profesor wants that..One more question, how to initialize array in vba, because I need to put images in array1 and captions for each image in array 2 and set captions(name of picture) to images like array1[0] => array2[0] ?? Thank you very much !!

macropod
03-27-2014, 12:58 AM
Sorry, but I (and most others here, AFAIK) don't knowingly provide homework answers.

macropod
03-27-2014, 04:42 PM
Cross-posted at: http://www.msofficeforums.com/word-vba/20349-selection-importing-pictures-word.html
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184

We don't do your homework for you there, either...