Solved

Word 2013 - Picture is linked or embedded

Posted on 2016-07-30
3
104 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 44

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 500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
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 …

726 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