Hi there,
I think I have a very simple question. I am copy pasting graphs from MS Excel into MS Word (the graphs are transferred via clipboard)
Once pasted i want to change the size of the picture.
I have tried to record a macro, but the the macro recorder does not allow me to select a picture. My work around for this was to select the picture before recording the macro and then select the picture command from the Format menu. this gave me the code below, but I get everything to work I need to find out how to select a picture in VBA.
Many thanks for reading till hers.
Selection.InlineShapes(1).Fill.Visible = msoFalse
Selection.InlineShapes(1).Fill.Solid
Selection.InlineShapes(1).Fill.Transparency = 0#
Selection.InlineShapes(1).Line.Weight = 0.75
Selection.InlineShapes(1).Line.Transparency = 0#
Selection.InlineShapes(1).Line.Visible = msoFalse
Selection.InlineShapes(1).LockAspectRatio = msoTrue
Selection.InlineShapes(1).Height = 136.65
Selection.InlineShapes(1).Width = 190.5
Selection.InlineShapes(1).PictureFormat.Brightness = 0.5
Selection.InlineShapes(1).PictureFormat.Contrast = 0.5
Selection.InlineShapes(1).PictureFormat.ColorType = msoPictureAutomatic
Selection.InlineShapes(1).PictureFormat.CropLeft = 0#
Selection.InlineShapes(1).PictureFormat.CropRight = 0#
Selection.InlineShapes(1).PictureFormat.CropTop = 0#
Selection.InlineShapes(1).PictureFormat.CropBottom = 0#
I think I have a very simple question. I am copy pasting graphs from MS Excel into MS Word (the graphs are transferred via clipboard)
Once pasted i want to change the size of the picture.
I have tried to record a macro, but the the macro recorder does not allow me to select a picture. My work around for this was to select the picture before recording the macro and then select the picture command from the Format menu. this gave me the code below, but I get everything to work I need to find out how to select a picture in VBA.
Many thanks for reading till hers.
Selection.InlineShapes(1).Fill.Visible = msoFalse
Selection.InlineShapes(1).Fill.Solid
Selection.InlineShapes(1).Fill.Transparency = 0#
Selection.InlineShapes(1).Line.Weight = 0.75
Selection.InlineShapes(1).Line.Transparency = 0#
Selection.InlineShapes(1).Line.Visible = msoFalse
Selection.InlineShapes(1).LockAspectRatio = msoTrue
Selection.InlineShapes(1).Height = 136.65
Selection.InlineShapes(1).Width = 190.5
Selection.InlineShapes(1).PictureFormat.Brightness = 0.5
Selection.InlineShapes(1).PictureFormat.Contrast = 0.5
Selection.InlineShapes(1).PictureFormat.ColorType = msoPictureAutomatic
Selection.InlineShapes(1).PictureFormat.CropLeft = 0#
Selection.InlineShapes(1).PictureFormat.CropRight = 0#
Selection.InlineShapes(1).PictureFormat.CropTop = 0#
Selection.InlineShapes(1).PictureFormat.CropBottom = 0#