VBA繪圖 VBA繪圖程式碼 '拷貝自https://excelatfinance.com/xlf19/xlf-... 'Dr Ian O'Connor, CPA. - located in Victoria, Australia. Option Explicit 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 = "楊閺霖" ...
">期中考改良 非巢狀條件 if (r) present("#FF0000"); if (g) present("#00FF00"); if (b) present("#0000FF"); 巢狀條件 if (r) present("#FF0000"); else if (g) present("#00FF00"); else if (b) present("#0000FF"); else alert("非以上顏色"); 期中考 喜愛 沒意見 討厭 紅色 綠色 藍色 粗體 輸出 楊閺霖心得 清單方塊: 下拉選單加上size 複習CSS 事件onclick。 條件判斷式 IF (判斷式) {成立則執行} ELSE {不成立則執行} 自訂函數xyz。 串樣式列表CSS list分成ol=ordered list 與ul=unordered list 變數型態variable type: 邏輯是true與非false 整數integer 實數real 字串string align: to put two or more things into a straight line 結構化程式設計structured programming是一項程式語言研究的結果,說明只要一種程式語言可以依三個方式組合其子程式及調整控制流程,每個可計算函式都可以用此種程式語言來表示。三個調整控制流程的方式為 執行一個子程式,然後執行下一個(順序) 依照布林變數的結果,決定執行二段子程式中的一段(選擇) 重覆執行某子程式,直到特定布林變數為真為止(迴圈) 符合上述條件的結構圖需要額外的位元變數(在原始證明中放在額外的整數變數中),以紀錄原來程式執行到的位置,此種建...
留言
張貼留言