版主,不行啊,用ActiveSheet.Pictures.Insert(pic).Select 出错提示: You cannot use this command on a protected sheet......... 我的表是锁住的,里面的信息都是从其他表中提取的. 而且在公司,有的机器上没问题,有的就不能显示图片内容,只显示图片名. Sub insertpic() Sheets("SPEC").Select Range("i8").Select Dim PIC As String PIC = Sheets("SPEC").Range("a1").Value
ActiveSheet.OLEObjects.Add(Filename:=PIC, Link:=False, _ DisplayAsIcon:=False).Select Selection.ShapeRange.ScaleWidth 1.33, msoFalse, msoScaleFromTopLeft Selection.ShapeRange.ScaleHeight 1.33, msoFalse, msoScaleFromTopLeft Selection.ShapeRange.LockAspectRatio = msoTrue Selection.ShapeRange.Height = 480 Selection.ShapeRange.Width = 555 Range("D2").Select End Sub 大家帮帮忙,看看会不会是其他什么问题. 先谢谢大家了 |