- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-8-16 16:17 ½s¿è
¦^´_ 4# baiecesi
¨Ì§AªþÀɪºªí³æ©Ò¼gªºµ{¦¡½X ¸Õ¸Õ¬Ý À³¬O³o¤è±ªº§@ªk- Dim Ar()
- Private Sub UserForm_Initialize()
- 'Initialize ¨Æ¥ó µo¥Í¦b¤@Óª«¥ó¸ü¤J«á¡A¦ý©|¥¼Åã¥Üªº®ÉÔ¡C
- ComboBox3.List = Array("Type1", "Type2", "Type3") 'B(Á`È) ªº¿ï¶µ
- 'B(Á`È) ªº¿ï¶µ ¥i«ü¦V¤u§@ªíªº¦ì¸m
- ReDim Ar(UBound(ComboBox3.List)) '«¸m°}¦C¤¸¯À¼Æ
- '------¦]¤l¿ï¶µ ¥i«ü¦V¤u§@ªíªº¦ì¸m
- Ar(0) = Array(1.15, 1.25) 'B(Á`È) ¿ï¶µ1 ªº¦]¤l¿ï¶µ
- Ar(1) = Array(2.5, 5) 'B(Á`È) ¿ï¶µ2 ªº¦]¤l¿ï¶µ
- '------¿ï¶µ3 ªº¦]¤l¿ï¶µ ½Ð¦Ûקï
- ' Ar(2) = Array(2.5, 5) 'B(Á`È) ¿ï¶µ3 ªº¦]¤l¿ï¶µ
- TextBox1.TabIndex = 1 '«·s³]©wªí³æ¤W±±¨î¶µªº TabIndex ¶¶§Ç
- ComboBox3.TabIndex = 2
- ComboBox1.TabIndex = 3
- End Sub
- Private Sub ComboBox3_Change()
- ComboBox1.Clear
- Label5.Caption = ""
- If ComboBox3.ListIndex > -1 Then ComboBox1.List = Ar(ComboBox3.ListIndex)
-
- End Sub
- Private Sub CommandButton1_Click()
- Dim xT(1 To 3) As Double
- If ComboBox3.ListIndex = -1 Or ComboBox3.ListIndex = -1 Then
- Label5.Caption = "ComboBox1.Text * ComboBox3.Text"
- Else
- Select Case ComboBox3.ListIndex '
- Case 0 'Type1
- xT(1) = 7.58
- xT(2) = 0.8
- Case 1 'Type2
- xT(1) = 7.9661
- xT(2) = 0.8
- Case 2 'Type3
- xT(1) = 8.1238
- xT(2) = 0.7243
- End Select
- xT(3) = Application.Evaluate("Exp(" & xT(1) & "+" & xT(2) & "* Ln(" & Val(TextBox1) & "))") / 1000
- Label5.Caption = Round((550 / 500) * xT(3) * Val(ComboBox1), 2)
- End If
- End Sub
- Private Sub CommandButton2_Click()
- End
- End Sub
½Æ»s¥N½X |
|