2012-02-16 52 views

回答

2
Sub EditShapes() 
'This Sub Edit all Shapes in all Sheets 

Dim sht As Worksheet 
Dim shp As Shape 

For Each sht In ActiveWorkbook.Sheets 
     For Each shp In sht.Shapes 
      shp.Width = shp.Width/2 
      shp.Height = shp.Height/2 
      shp.Line.Weight = 0.25 
     Next shp 
Next sht 

End Sub 

要选择的形状

Sub EditSelectShape() 
Dim shp As ShapeRange 

Set shp = Selection.ShapeRange 

shp.Width = shp.Width/2 
shp.Height = shp.Height/2 
shp.Line.Weight = 0.25 

End Sub 
+0

太感谢你了,但不是这个正在实施的所有表的所有照片,我想这是一个在实际工作表上选择的图片并非全部 - 我会玩弄你的代码,看看我能得到什么。非常感谢。 – Rg786 2012-02-16 14:08:38

+0

谢谢,这个作品完美。 – Rg786 2012-02-16 14:52:54

相关问题