Results 1 to 13 of 13
  1. #1
    New Lounger
    Join Date
    Mar 2001
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Word 97 link fields

    Linked fields in Word 97 arer usually in an absolute form i.e. C:My DocumentsPROJECTSProject name/docs/images.
    This plays havoc with sending a doc + images to another worker or client, who will have a different directory structure. If they click on an image in attempt to edit it, Word will say it can't edit the image.
    One cure is to manually change the link path, under edit/links for each image. Word cannot be told to look in a particular directory for images unfortunately.

    The only work around I have at the moment is to change to show field codes under tools/view and do a find and replace to change the entire path string.

    Perhaps this could be done with a Macro - but a C++ Addin would be better.

    Can someone with programming skills do this? Has it been done already?
    Does anyone have a better solution?
    I have not been able to get relative path names to offer any benefit - the moment a linked graphic is opened from within Word, the full absolute path is restored anyway. It does not solve the problem of another worker or the client continuning to work on the document and its linked images with the same ease as the author.
    Any suggestions welcome.

    Brian

  2. #2
    crudd
    Guest

    Re: Word 97 link fields

    Forget ya macros - theres a Much Easier Way - search n replace.

    Firstly, toggle field codes on (Alt+F9) then search for OLD_PATH_STEM and replace with ..


    Da dah!

  3. #3
    New Lounger
    Join Date
    Mar 2001
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word 97 link fields

    When ported to another machine the paths relevant for my nachine tend to reappear when 'Update Link' is clicked or if an attempt to edit the linked Corel Drawing is made.

    Changing the path in the view code view does not permanently change them with the particular files I have problems with.

    Brian

  4. #4
    crudd
    Guest

    Re: Word 97 link fields

    Hmm, they should be inlineshapes which dont have a "name" property to hold a filename, its referenced from the inline field.

    You could test the values of your activedocument.shapes(loop).name to see if any bad names appear there, or you might try the ole copy everything bar the last paragraph mark in each section to a new document and see if the problem follows you across.

  5. #5
    New Lounger
    Join Date
    Mar 2001
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word 97 link fields

    OK some technical jargon there!
    Basically I'm a writer not a programmer -
    Can you explain what the buzz words mean?
    All I knw is that OLE doesn't woth with Corel Draw vector format files in the same way as Ventura. I can't reliably link to .cdr files click on them in the Word document edit them etc send the wholw lot to a client have them do the same etc without some (a lot actually) of the links getting broken.

    Brian

  6. #6
    5 Star Lounger
    Join Date
    Dec 2000
    Location
    Tallahassee, Florida, USA
    Posts
    901
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word 97 link fields

    Hi, Brian -- is there a reason for keeping the links active in what your sending out? If not, you can break or lock the links before sending... particularly images. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

    To do so, visit each image (view field codes disabled) and key Ctrl+F11. If there are no other fields in the document, then select all (Ctrl+A) first, and you can do it in one fell swoop.

    As an aside -- I have found in general that Word's programming associated with linking images bloats the file size beyond what that same file's size would be if using inserted images, so if you're linking as a way to save space on your PC or server, you may want to re-examine this issue. <img src=/S/dizzy.gif border=0 alt=dizzy width=15 height=15>It certainly makes one wonder, doesn't it?
    Karen

  7. #7
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word 97 link fields

    Hi Karen:

    You've peaked my curiosity. I assumed that embeded graphics caused a document to be larger than if one had linked the same graphic. The opposite behavior that you've noticed, does it depend on the graphic format (bmp, wmf, etc.)? I'm gonna have to put this on my list (ever growing) of things to check out.

  8. #8
    5 Star Lounger
    Join Date
    Dec 2000
    Location
    Tallahassee, Florida, USA
    Posts
    901
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word 97 link fields

    I haven't tried all formats, but on several occasions have reduced file size by copying the graphic and, while it's still selected using Edit / Paste Special / Device Independent Bitmap. The most notable contained 20 or so graphics and the file size dropped from 4Meg to 400K. Significant, no? <img src=/S/dizzy.gif border=0 alt=dizzy width=15 height=15>
    Karen

  9. #9
    crudd
    Guest

    Re: Word 97 link fields

    run this code and check out the results, its a long shot but still.

    sub listmyshapefiles()
    dim k as long
    for k=1 to activedocument.shapes.count
    msgbox activedocument.shapes.name(k)
    next k
    end sub

  10. #10
    New Lounger
    Join Date
    Mar 2001
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word 97 link fields

    On the subject of reducing files size, I've found that saving as rtf, closing, bringing it back in and converting to doc again can save humungous amounts of bloat - in one case from 47 Mbytes to 900K.
    The procedure works so well I do it routinely now.

    (I sure hope its not causing the link portability problem I've been getting)

    Brian

  11. #11
    New Lounger
    Join Date
    Mar 2001
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word 97 link fields

    Thanks for the help - but -
    What does this code do?
    How do I run it? - What steps do I need to take to run this code?

    Brian

  12. #12
    crudd
    Guest

    Re: Word 97 link fields

    Copy the macro text into your clipboard
    Load Word
    Press Alt+F11 to load the VBA editor
    You should be in a module called NewMacros according to the Project Explorer pane on the left. If this pane isnt present, use Ctrl+R to reveal it.
    If you arent in Normal / Modules / Newmacros you should try to browse to there using the Project Explorer. If there are no modules under the Normal template, or there is no Newmacros module, then use your task bar to go back to word, record a dummy macro (just type a few keys and stop recording), and then flip back to the VB editor.

    At this point you have double-clicked on the Normal / Modules / Newmacros module and it has opened up on the right pane. Paste your code in here, leave the cursor anywhere inside and press run (it looks like the play key, or use F5.)

    Now, to make this better, you can paste the code into your own template, go back to word, rightclick a toolbar and select customise.
    Select commands tab and then scroll down the left list until you find macros, highlight this. Look for your macro in this list, and when you find it, drag it to somewhere on your toolbars. By pressing the button created you will launch this macro.

    Or you can assign a shortcut key to this macro, via the same customise button, but by selecting the Keyboard button down the bottom of the dialog.

  13. #13
    New Lounger
    Join Date
    Mar 2001
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word 97 link fields

    1) What does this macro actually do?
    2) If I run it it causes a compile error at .Name
    'method or data member not found'
    thanks

    Brian

Posting Permissions

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