![]() So this code figures out how many pictures ( InlineShapes) are already in the document up to the selection. What else is happening in the code: When a picture is pasted inline it's not selected. ![]() (The conversion is an extra step involved that you don't have to do in the UI - Word does it for you.)īefore this happens the code changes the size, but it could also be the other way around, changing the size on the Shape object. The following code sample uses ConvertToShape so that text wrap formatting can be applied. ![]() For future things of this nature that should give you a starting point :-) And you can convert between the two using ConvertToInlineShape / ConvertToShape. An object that behaves like a character is an InlineShape. If you need to do something like this in the future it will help you to know that an object with any kind of "text wrap" formatting (that "floats") is a Shape. Yes, that's interesting about the macro recorder.
0 Comments
Leave a Reply. |