excel ³ø»ùªí³æ¤W¿é¤J¤£¦PªºItem¦p¦ó±a¤J¤£¦Pªº¹Ï¤ù
- ©«¤l
- 44
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 70
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2014-2-19
- ³Ì«áµn¿ý
- 2015-10-30
|
excel ³ø»ùªí³æ¤W¿é¤J¤£¦PªºItem¦p¦ó±a¤J¤£¦Pªº¹Ï¤ù
½Ð°Ý¦U¦ì°ª¤â,§Ú¦bexcel ªí³æ¤Wªº¹Ï¤ù(Image)
·Q¨Ì·Óªí³æ¤W¿é¤J¤£¦PªºItem±a¤J¤£¦Pªº¹Ï¤ù(¹Ï¤ùÀx¦s¦bD:\catalogue¸Ì)
µ{¦¡½XÀ³¸Ón«ç»ò¼g?? |
-
-
³ø»ù³æ.rar
(27.66 KB)
|
|
|
|
|
|
- ©«¤l
- 44
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 70
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2014-2-19
- ³Ì«áµn¿ý
- 2015-10-30
|
¦^´_ 28# GBKEE
ª©¥D§A¦n,§ÚFOB¬üª÷ªº´«ºâ·Q§ï¦¨=ROUND(Á`»ù/¬üª÷¶×²v/¤ò§Q²v(°l¥[TextBox38),2)
¼Ú¤¸ªº´«ºâ·Q§ï¦¨=ROUND(Á`»ù/¼Ú¤¸¶×²v/¤ò§Q²v(°l¥[TextBox38),2)
¤U±µ{¦¡×§ï¦¨³o¼Ë¹ï¶Ü?
Private Sub TextBox7_Change() 'Á`»ù
If Val(Trim(TextBox7)) <> 0 Then
If Val(Trim(TextBox5)) <> 0 And Val(Trim(TextBox36)) = 0 And Val(Trim(TextBox38)) <> 0 Then TextBox36 = Application.WorksheetFunction.Round(TextBox7 / TextBox5 / TextBox38, 2)
If Val(Trim(TextBox5)) <> 0 And Val(Trim(TextBox36)) = 0 And Val(Trim(TextBox38)) <> 0 Then TextBox38 = Application.WorksheetFunction.Round(TextBox7 / TextBox5 / TextBox38, 2)
'=ROUND(Á`»ù/¬ü¤¸¶×²v/¤ò§Q²v,2)
If Val(Trim(TextBox6)) <> 0 And Val(Trim(TextBox37)) = 0 And Val(Trim(TextBox38)) <> 0 Then TextBox37 = Application.WorksheetFunction.Round(TextBox7 / TextBox6 / TextBox38, 2)
If Val(Trim(TextBox6)) <> 0 And Val(Trim(TextBox37)) = 0 And Val(Trim(TextBox38)) <> 0 Then TextBox38 = Application.WorksheetFunction.Round(TextBox7 / TextBox6 / TextBox38, 2)
'=ROUND(Á`»ù/¼Ú¤¸¶×²v/¤ò§Q²v,2)
If Val(Trim(TextBox36)) <> 0 Then TextBox5 = Application.WorksheetFunction.Round(TextBox7 / TextBox36 / TextBox38, 2) 'Á`»ù*¬ü¤¸¶×²v*¤ò§Q²v
If Val(Trim(TextBox38)) <> 0 Then TextBox5 = Application.WorksheetFunction.Round(TextBox7 / TextBox36 / TextBox38, 2) 'Á`»ù*¬ü¤¸¶×²v*¤ò§Q²v
If Val(Trim(TextBox37)) <> 0 Then TextBox6 = Application.WorksheetFunction.Round(TextBox7 / TextBox37 / TextBox38, 2) 'Á`»ù*¼Ú¤¸¶×²v*¤ò§Q²v
If Val(Trim(TextBox38)) <> 0 Then TextBox6 = Application.WorksheetFunction.Round(TextBox7 / TextBox37 / TextBox38, 2) 'Á`»ù*¼Ú¤¸¶×²v*¤ò§Q²v
ElseIf Val(Trim(TextBox7)) = 0 Then
TextBox5 = ""
TextBox6 = ""
End If
If Msg Then ¨¾§b
End Sub
Private Sub TextBox36_Change()
If Val(Trim(TextBox7)) <> 0 And Val(Trim(TextBox36)) <> 0 Then
TextBox5 = Application.WorksheetFunction.Round(TextBox7 / TextBox36, 2)
'=ROUND(Á`»ù/¬ü¤¸¶×²v/¤ò§Q²v,2)
ElseIf Val(Trim(TextBox7)) <> 0 And Val(Trim(TextBox5)) <> 0 Then
TextBox5 = TextBox7
End If
End Sub
Private Sub TextBox37_Change()
If Val(Trim(TextBox7)) <> 0 And Val(Trim(TextBox37)) <> 0 Then
TextBox6 = Application.WorksheetFunction.Round(TextBox7 / TextBox37, 2)
'=ROUND(Á`»ù/¼Ú¤¸¶×²v/¤ò§Q²v,2)
ElseIf Val(Trim(TextBox7)) <> 0 And Val(Trim(TextBox6)) <> 0 Then
TextBox6 = TextBox7
End If
End Sub
Private Sub TextBox38_Change()
If Val(Trim(TextBox7)) <> 0 And Val(Trim(TextBox36)) <> 0 And Val(Trim(TextBox38)) <> 0 Then
TextBox5 = Application.WorksheetFunction.Round(TextBox7 / TextBox36 / TextBox38, 2)
'=ROUND(Á`»ù/¬ü¤¸¶×²v/¤ò§Q²v,2)
ElseIf Val(Trim(TextBox7)) <> 0 And Val(Trim(TextBox5)) <> 0 Then
TextBox5 = TextBox7
End If
If Val(Trim(TextBox7)) <> 0 And Val(Trim(TextBox37)) <> 0 And Val(Trim(TextBox38)) <> 0 Then
TextBox6 = Application.WorksheetFunction.Round(TextBox7 / TextBox37 / TextBox38, 2)
'=ROUND(Á`»ù/¼Ú¤¸¶×²v/¤ò§Q²v,2)
ElseIf Val(Trim(TextBox7)) <> 0 And Val(Trim(TextBox6)) <> 0 Then
TextBox6 = TextBox7
End If
End Sub |
-
-
¥¼©R¦W.JPG
(76.61 KB)
|
|
|
|
|
|
- ©«¤l
- 44
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 70
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2014-2-19
- ³Ì«áµn¿ý
- 2015-10-30
|
¦^´_ 25# GBKEE
ª©¥D§A¦n,§Ú±NIsNumeric (Àˬd¬O§_¬°¼Æ¦r)§ï IsText³o¼Ë¤£¹ï¶Ü
If IsError(A) And IsText(Trim(ComboBox1)) And InStr(AR(1) & ",", ",,") = 0 Then CommandButton1.Enabled = True |
|
|
|
|
|
|
- ©«¤l
- 44
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 70
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2014-2-19
- ³Ì«áµn¿ý
- 2015-10-30
|
¦^´_ 25# GBKEE
Sub ¨¾§b() 'nµ¹ª«¥óÃþ§O¼Ò²Õ©I¥s,¤£¥i¥Î Private
Dim A As Variant, i As Integer, Rng As Range, AR(1 To 2)
CommandButton1.Enabled = False '¤£¥i·s¼W
CommandButton2.Enabled = False '¤£¥iקï
CommandButton3.Enabled = False '¤£¥i§R°£
A = Application.Match(Val(ComboBox1), Application.Transpose(ComboBox1.List), 0)
If (IsNumeric(A) And ComboBox1.ListIndex = -1) Or ComboBox1.ListIndex > -1 Then
CommandButton3.Enabled = True '¥i¥H§R°£
End If
For i = 2 To 35
If i <= 33 Then
If i <= 7 Then AR(1) = AR(1) & "," & Trim(Controls("TextBox" & i))
'Ar(1): °O¿ý -> Description,½c,Cuft,FOB-¬üª÷,FOB-¼Ú¤¸,Á`»ù'¦bªí³æªº¸ê®Æ
If Controls("TextBox" & i).BackColor = vbRed Then
CommandButton1.Enabled = False '¤£¥i·s¼W
CommandButton2.Enabled = False '¤£¥iקï
Exit Sub 'Â÷¶} [¨¾§b]³oµ{¦¡
End If
End If
If IsNumeric(A) Then AR(2) = AR(2) & Trim(Controls("TextBox" & i)) 'Ar(2): °O¿ý -> ªí³æªº©Ò¦³¸ê®Æ
Next
If IsError(A) And IsNumeric(Trim(ComboBox1)) And InStr(AR(1) & ",", ",,") = 0 Then CommandButton1.Enabled = True ¬O±q³o¸Ì§ï¶Ü?
'IsError(A) :Trim(ComboBox1 ¤£¦b ComboBox1.LIST ¤¤, ¥i¥H·s¼W
'IsNumeric(Trim(ComboBox1)) µø¼Æ¦r , ¥i¥H·s¼W
'InStr(Ar(1) & ",", ",,") = 0 ->¨S¦³ªÅ¥Õ , ¥i¥H·s¼W
If IsNumeric(A) And Msg_Data <> AR(2) Then CommandButton2.Enabled = True '¥i¥Hקï
End Sub |
|
|
|
|
|
|
- ©«¤l
- 44
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 70
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2014-2-19
- ³Ì«áµn¿ý
- 2015-10-30
|
¦^´_ 21# GBKEE
ª©¥D§A¦n,¦b·s¼WITEM®É¥u¯à¥´¼Æ¦r·s¼W,§ï¦¨¤å¦r®É´N¤£¯à·s¼W
³on¦p¦óקï??? |
|
|
|
|
|
|
- ©«¤l
- 44
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 70
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2014-2-19
- ³Ì«áµn¿ý
- 2015-10-30
|
|
|
|
|
|
|
- ©«¤l
- 44
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 70
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2014-2-19
- ³Ì«áµn¿ý
- 2015-10-30
|
¦^´_ 21# GBKEE
ª©¥D§A¦n,§ÚFOB¬üª÷ªº´«ºâ·Q§ï¦¨=ROUND(Á`»ù/¬üª÷¶×²v/¤ò§Q²v(°l¥[TextBox38),2)
¼Ú¤¸ªº´«ºâ·Q§ï¦¨=ROUND(Á`»ù/¼Ú¤¸¶×²v/¤ò§Q²v(°l¥[TextBox38),2)
¤U±ªºµ{¦¡n¦p¦ó°l¥[¤ò§Q²v(°l¥[TextBox38)³o¦UÄæ¦ì
Private Sub TextBox7_Change() 'Á`»ù
If Val(Trim(TextBox7)) <> 0 Then
If Val(Trim(TextBox5)) <> 0 And Val(Trim(TextBox36)) = 0 Then TextBox36 = Application.WorksheetFunction.Round(TextBox7 / TextBox5, 2)
'=ROUND(Á`»ù/¬üª÷¶×²v/¤ò§Q²v(°l¥[),2)
If Val(Trim(TextBox6)) <> 0 And Val(Trim(TextBox37)) = 0 Then TextBox37 = Application.WorksheetFunction.Round(TextBox7 / TextBox6, 2)
'=ROUND(Á`»ù/¬üª÷¶×²v/¤ò§Q²v(°l¥[),2)
If Val(Trim(TextBox36)) <> 0 Then TextBox5 = Application.WorksheetFunction.Round(TextBox7 / TextBox36, 2) 'Á`»ù*¬ü¤¸¶×²v
If Val(Trim(TextBox37)) <> 0 Then TextBox6 = Application.WorksheetFunction.Round(TextBox7 / TextBox37, 2) 'Á`»ù*¼Ú¤¸¶×²v
ElseIf Val(Trim(TextBox7)) = 0 Then
TextBox5 = ""
TextBox6 = ""
End If
If Msg Then ¨¾§b
End Sub
Private Sub TextBox36_Change()
If Val(Trim(TextBox7)) <> 0 And Val(Trim(TextBox36)) <> 0 Then
TextBox5 = Application.WorksheetFunction.Round(TextBox7 / TextBox36, 2)
'=ROUND(G2/30,2)
ElseIf Val(Trim(TextBox7)) <> 0 And Val(Trim(TextBox5)) <> 0 Then
TextBox5 = TextBox7
End If
End Sub
Private Sub TextBox37_Change()
If Val(Trim(TextBox7)) <> 0 And Val(Trim(TextBox37)) <> 0 Then
TextBox6 = Application.WorksheetFunction.Round(TextBox7 / TextBox37, 2)
'=ROUND(G2/40,2)
ElseIf Val(Trim(TextBox7)) <> 0 And Val(Trim(TextBox6)) <> 0 Then
TextBox6 = TextBox7
End If
End Sub |
-
-
¥¼©R¦W.JPG
(76.61 KB)
|
|
|
|
|
|