Consulting

Results 1 to 5 of 5

Thread: Import images in word in order of selection HELP!!

  1. #1
    VBAX Newbie
    Joined
    Mar 2014
    Posts
    2
    Location

    Import images in word in order of selection HELP!!

    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!
    Last edited by igor777; 03-26-2014 at 01:13 PM.

  2. #2
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    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.
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    VBAX Newbie
    Joined
    Mar 2014
    Posts
    2
    Location
    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 !!

  4. #4
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    Sorry, but I (and most others here, AFAIK) don't knowingly provide homework answers.
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

  5. #5
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    Cross-posted at: http://www.msofficeforums.com/word-v...ures-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...
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •