Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Word 2013 - Picture is linked or embedded

Posted on 2016-07-30
3
Medium Priority
?
136 Views
Last Modified: 2016-07-31
Dear Experts,

Could you please advise how to identify simply, whether a certain picture is

a) linked
or
b) embedded

to the actual Word file?

Thanks in advance,
0
Comment
Question by:csehz
3 Comments
 
LVL 51

Expert Comment

by:Jackie Man
ID: 41736264
If a picture is embedded, the file size will be substantially larger than a typical word file which is less than 50kb for 50 pages document.
0
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 2000 total points
ID: 41736392
You could run this VBA macro with the picture(s) selected
Sub SelectedPicturesReport()
    Dim sh As Shape
    Dim ilsh As InlineShape
    For Each sh In Selection.ShapeRange
        If sh.LinkFormat Is Nothing Then
            MsgBox "Picture is an embedded shape (floating)"
        Else
            MsgBox "Floating:  " & sh.LinkFormat.SourceFullName
        End If
    Next sh
    For Each ilsh In Selection.InlineShapes
        If ilsh.LinkFormat Is Nothing Then
            MsgBox "Picture is embedded and in line with the text"
        Else
            MsgBox "In line:   " & ilsh.LinkFormat.SourceFullName
        End If
    Next ilsh
End Sub

Open in new window

1
 
LVL 1

Author Closing Comment

by:csehz
ID: 41736484
That code is awesome, thanks very much
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question