vba繪圖 Const topleft As String = "C5" ' anchor cell Const diam As Integer = 100 ' points Dim Shp As Shape '全域變數global variables 每一個副程式都可以用 Sub 楊翔宇() Dim TLCleft As Double '區域local variables Dim TLCtop As Double Dim i As Integer For i = 1 To 30 TLCleft = 20 * i TLCtop = 20 * i Set Shp = ActiveSheet.Shapes.AddShape(Type:=msoShapeOval, _ Left:=TLCleft, Top:=TLCtop, _ Width:=diam, Height:=diam) With Shp .Fill.Visible = msoFalse .Line.Weight = 10 .Line.ForeColor.Brightness = 0.4 .ThreeD.BevelTopType = msoBevelCircle End With Next With Cells(1, 1) '物件 子物件 屬性 方法 .Value = "楊翔宇" .Interior.Color = RGB(200, 200, 0) With .Font .Size = 20 .Color = RGB(255, 255, 255...
發表文章
目前顯示的是 11月, 2021的文章