劉任昌蒙地卡羅模擬資產價格 切割期數 0 10 20 30 40 50 60 70 80 90 100 1000 5000/OPTION> 10000
Posts
- Get link
- X
- Other Apps
德明財務金融金一丙 黃子亮 Option Explicit Const topleft As String = "C5" ' anchor cell Const diam As Integer = 180 ' points Dim Shp As Shape '宣告dim 變數Shp是圖形Shape global Sub xlfAddCircle1() 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.4 .ThreeD.BevelTopType = msoBevelCircle End With End Sub Sub 劉任昌超級臭屁() Dim x As Double '宣告 x 是倍精度double Dim y As Double '宣告 y 是倍精度double Dim i As Integer '選告整數i For i = 1 To 20 x = 20 y = 20 * i Set Shp = ActiveSheet.Shapes.AddShape(Typ...
黃子亮EXCEL VBA 雙迴圈JavaScript迴
- Get link
- X
- Other Apps
輸出 EXCEL學習 '變數variables應該要宣告 pre=preserve保留 'Dimension 宣告指令 Option Explicit Dim i, j As Integer Public Sub 豬八戒() For i = 2 To 7 For j = 1 To 6 Cells(i, j).Value = i * j Cells(i, j).Font.Color = RGB(0, 0, 255) Cells(i, j).Font.Bold = True Next Next End Sub 相當於JavaScript指令}代表結束VBA不用{ } 代表開始與結束,sub end sub JavaScript迴圈 <head> <style> h1{padding: 20px; background-color: green; color: white;} </style> <script> function year() { var tmp ="<font size=5 color=#0000FF>"; //輸出HTML指令preserve格式 for (var i=0 ; i<= 5; i++) { tmp = tmp + (i+2020) +"年"; for (var j=1; j<13; j++) { tmp=tmp + j +"月"; } tmp = tmp +"<br/>"; }//tmp 是一個字串變數+進行字串的串接加上<br/>html換列命令 tmp = tmp + "</font>"; document.getElementById("out").innerHTML = tmp; }...
黃子亮財金程式設計100條件判斷式IF_ELSE:網頁CSS
- Get link
- X
- Other Apps
紅色 綠色 藍色 名字 次數 輸出 劉任昌學習劉任昌100影片 維基百科CSS (英語:Cascading Style Sheets,縮寫:CSS;又稱串樣式列表、級聯樣式表、串接樣式表、階層式樣式表)是一種用來為結構化文件(如HTML文件或XML應用)添加樣式(字型、間距和顏色等)的電腦語言,由W3C定義和維護。CSS 被分為不同等級:CSS1 現已廢棄, CSS2.1 是推薦標準, CSS3 分成多個小模組且正在標準化中。[來源請求]CSS3現在已被大部分現代瀏覽器支援,而下一版的CSS4仍在開發中。 學習心得 事件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 劉任昌101影片 劉任昌102影片