709-218-7927

The Landfall Garden House

60 Canon Bayley Road

CANADA A0C 1B0

CPRGreaves@gmail.com

Home

Christopher Greaves

The Images Could Be Stored Externally

In some documents you will find that the user has pasted images directly from the clipboard. I think that this is a poor practice. Much better IMHO to link the image in as a picture.

Sub test1()

Dim rng As Range

Set rng = ActiveDocument.Range

Debug.Print rng.InlineShapes.Count

Dim lng As Long

For lng = 1 To rng.InlineShapes.Count

rng.InlineShapes(lng).Select

Next lng

End Sub

Sub test2()

Dim rng As Range

Set rng = ActiveDocument.Range

Debug.Print rng.Hyperlinks.Count

Dim lng As Long

For lng = 1 To rng.Hyperlinks.Count

rng.Hyperlinks(lng).Range.Select

Next lng

End Sub

709-218-7927 CPRGreaves@gmail.com

Bonavista, Thursday, December 17, 2020 7:27 AM

Copyright © 1996-2020 Chris Greaves. All Rights Reserved.