0

I want to edit an inserted picture (c&p) on a word document. So I have this

chart.CopyPicture();                                              
bookmark.Range.Paste();

to copy it from my excel file and paste it into my word file. But now I have to edit it on my word file. How can I find it to do so?

Deduplicator
  • 44,692
  • 7
  • 66
  • 118
RedDot
  • 71
  • 1
  • 7
  • To be a little bit clearer: in PPT I was able to do something like shape = something.Paste(); because Paste() or PasteSpecial() returns a shape but it doesn't in word. Its void in word. So shape = bookmark.Range.Paste() is not possible. – RedDot Jan 25 '17 at 10:34

2 Answers2

0

If you would like to change shape, use How to change the size of a picture after inserting it into a word document

shape.Width = 150; 
shape.Height = 150;
Community
  • 1
  • 1
Janis S.
  • 2,526
  • 22
  • 32
  • But how can I find my picture or assign it to a shape? On your link, he is using AddPicture() on a shape but you can not do something like shape.AddPicture(...Paste(),...) or paste(shape.range) or something like this. – RedDot Jan 25 '17 at 09:54
  • You could try resizing the frame before pasting it. http://stackoverflow.com/questions/9666624/position-scale-image-after-programmatically-pasting-it-into-bookmark-range – Janis S. Jan 25 '17 at 09:59
0

See if you can find your picture under bookmark.Range.ShapeRange or bookmark.Range.InlineShapes

https://msdn.microsoft.com/en-us/library/office/ff195321.aspx

https://msdn.microsoft.com/en-us/library/office/ff837242.aspx

Jbjstam
  • 874
  • 6
  • 13