Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2008

Tip: Looking for answers? Try searching our database.

Insert pictures in word document - search and replace with a picture

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steven Reid - 04 Mar 2008 12:08 GMT
Hi All,

I am trying to create a macro for Word 2003 that will loop through a
document and insert a book cover picture from a file directory based on the
a code in the document

At the moment we have a table with the following:
     Isbn
    Fmt
    Image
    Title
    Author
    Was
    Now

     07121654654

    Additup
    Book Title 1
    Mor
    26.95
    7.99

     0146543078

    Addkeki
    Book Title 2
    Padraic
       29.95
         7.99

     9780755464
    B
    BDUFIJO
    Book Title 3
    BISSETTI
    24.99
    7.99

     9780399564
    B
    CDUJOBO
    Book Title 4
    LEHM
    24.99
    7.99

I want to be able to run a macro that will, based on the code in the image
column, go into c:\pictures\a or c:\pictures\b or whatever based on the
first letter.
I would like to be able to also resize the graphic to a standard size  e.g.
95 w x 120 h  (for example)

Any Ideas?

Thanks in advance

Steven Reid
Graham Mayor - 05 Mar 2008 12:47 GMT
This sounds like a job for mail merge - see
http://www.gmayor.com/mail_merge_graphics.htm
If you want all the images to be the same size, insert them into table cells
with a fixed width. The images will then adapt to the width of that cell.

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

> Hi All,
>
[quoted text clipped - 54 lines]
>
> Steven Reid
Steven Reid - 06 Mar 2008 10:54 GMT
Wow!

Very impressive.  I will have a look at that option.

Thank you very much

Steve

> This sounds like a job for mail merge - see
> http://www.gmayor.com/mail_merge_graphics.htm
[quoted text clipped - 60 lines]
>>
>> Steven Reid

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.