J
Jan Kratochvil
I insert lot of images with size 100*600, 1200*700, etc. my document.
They are screenshots.
How is it possible to insert those images with size 50% to have they in my
doc displayed in true size?
I tried to make this macro but I don't understand the properties:
Selection.InlineShapes(1).Height = 50
Selection.InlineShapes(1).Width = 50
What does mean the value 50?
If I run the macro on images with different size, than I get in Word every
time the same size.
It means .Height and .Size works not in %?
Here is the macro:
Sub SetImgSize()
'
' SetImgSize Makro
' Set image site on size 50%
'Shift+Alt+S
'
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 = 50
Selection.InlineShapes(1).Width = 50
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#
End Sub
Thanks
They are screenshots.
How is it possible to insert those images with size 50% to have they in my
doc displayed in true size?
I tried to make this macro but I don't understand the properties:
Selection.InlineShapes(1).Height = 50
Selection.InlineShapes(1).Width = 50
What does mean the value 50?
If I run the macro on images with different size, than I get in Word every
time the same size.
It means .Height and .Size works not in %?
Here is the macro:
Sub SetImgSize()
'
' SetImgSize Makro
' Set image site on size 50%
'Shift+Alt+S
'
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 = 50
Selection.InlineShapes(1).Width = 50
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#
End Sub
Thanks