L
ldchip
I'd like to request some help constructing a code snippet which will iterate
through all AutoShape objects in a document, setting the
Shape.Fill.UserPicture fn property with a filename parsed from the paragraph
immediately preceding the AutoShape object. For example, this pattern
repeats randomly throughout the document -
=piclink=Path\imageName.jpg=
followed by a DrawingCanvas or Frame, containing one AutoShape object.
Either each instance of the tag "=piclink=" can be found, parsed for fn, and
knowing the AutoShape is the next line down. Or is it better to iterate
through all AutoShape object (perhaps ShapeRange array ? ) , knowing the fn
can be parsed from the paragraph preceding the AutoShape ?
I'm a novice VBA coder, like most, I read VBA much better than I can write
it
Any help with any snippet of code to accomplish this is much appreciated.
thanks,
Lou
through all AutoShape objects in a document, setting the
Shape.Fill.UserPicture fn property with a filename parsed from the paragraph
immediately preceding the AutoShape object. For example, this pattern
repeats randomly throughout the document -
=piclink=Path\imageName.jpg=
followed by a DrawingCanvas or Frame, containing one AutoShape object.
Either each instance of the tag "=piclink=" can be found, parsed for fn, and
knowing the AutoShape is the next line down. Or is it better to iterate
through all AutoShape object (perhaps ShapeRange array ? ) , knowing the fn
can be parsed from the paragraph preceding the AutoShape ?
I'm a novice VBA coder, like most, I read VBA much better than I can write
it
Any help with any snippet of code to accomplish this is much appreciated.
thanks,
Lou