|
Sub Mac() ss = ThisDocument.Path & "\" Selection.InlineShapes.AddPicture(FileName:=ss & "企鹅.jpg", LinkToFile:=False, SaveWithDocument:=True).Select '插入,企鹅,图片后,设置图片高度5.5cm,宽度3.5cm,居左排列 With Selection.InlineShapes(1) .Height = 28.35 * 5.5 .Width = 28.35 * 3.5 .Fill.Visible = msoFalse .Line.Visible = msoFalse .LockAspectRatio = msoFalse .PictureFormat.ColorType = msoPictureAutomatic End With Selection.MoveDown unit:=wdParagraph Selection.InlineShapes.AddPicture(FileName:=ss & "夏天.jpg", LinkToFile:=False, SaveWithDocument:=True).Select ''插入,夏天,图片后,设置图片高度4.7cm,宽度3.6cm,居中排列 With Selection.InlineShapes(1) .Height = 28.35 * 4.7 .Width = 28.35 * 3.6 .Fill.Visible = msoFalse .Fill.Solid .Line.Visible = msoFalse .LockAspectRatio = msoFalse .PictureFormat.ColorType = msoPictureAutomatic End With Selection.MoveDown unit:=wdParagraph End Sub |
|