于治善VBA雙迴圈Loop與JavaScript迴圈
VBA迴圈畫圓 VBA迴圈畫圖程式碼 '拷貝自https://excelatfinance.com/xlf19/xlf-... 'Dr Ian O'Connor, CPA. - located in Victoria, Australia. '2021/11/29劉任昌指導我從 Option Explicit Const topleft As String = "C5" ' anchor cell Const diam As Integer = 180 ' points Sub xlfAddCircle1() Dim shp As Shape Dim TLCleft As Double 'local variables區域變數 Dim TLCtop As Double TLCleft = Range(topleft).Left TLCtop = Range(topleft).Top 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.789 .ThreeD.BevelTopType = msoBevelCircle End With End Sub Sub 于治善() Dim shp As Shape '宣告dim 變數shp是圖形shpae Dim TLCleft As Double 'local varia...