excel VBA calculate ªººÃ°Ý
- ©«¤l
- 18
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 19
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- excel 2007
- ¾\ŪÅv
- 10
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2013-5-7
- ³Ì«áµn¿ý
- 2018-6-25
|
excel VBA calculate ªººÃ°Ý
Àx¦s®æA1 ·|±q¥~³¡±µ¦¬¸ê®Æ (DDE±µ¦¬¶}½L»ù)
¨Ò¦p ¥x¿n¹q¶}½L»ù
§Ú³]©w¤@ӥؼР(100¤¸)
¦pªG·í¤Ñ¶}½L>=100
´N·|°õ¦æ°e³æ
§ÚGOOGLE¤F¤@¤U
ºô¸ô¤W³£¬O±Ð¨Ï¥Î calculate ©Mchange³o¨âÓ«ü¥O
¦]¬°±µ¦¬¥~³¡¸ê®Æ
©Ò¥H¥u¯à¨Ï¥Îcalculate
¦ý§Ú¸Õ¤F¤@¤U
µo²{¨âÓ°ÝÃD
1. ´N¬O§Ú¥D°Ê§ïA1(§ï¬°101)ªºÈ, ¨Ã¤£·|¥D°Ê°e³æ, ¦Ó¬On±qVB¸Ì±«ö°õ¦æ¤~·|°e¥X³æ¤l.
2. ¤@¥¹«ö¤F°õ¦æ, ´N·|¤@ª½°e³æ°eÓ¤£°±, ¦³¨S¦³¿ìªk³]©w¦¨A1ÅÜ°Ê1¦¸, °e³æ1¦¸©O?? |
|
excel VBA ¦nÃø³á...
|
|
|
|
|
- ©«¤l
- 18
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 19
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- excel 2007
- ¾\ŪÅv
- 10
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2013-5-7
- ³Ì«áµn¿ý
- 2018-6-25
|
¦^´_ 2# GBKEE
¬Q¤Ñ¸Õ¤F´X¦¸
µo²{ÁÙ¬O¤£¦æ
§Ú«á¨Óµo²{¬O§Ú°Ýªº¤£¦n
§Ú«·s°Ý§Úªº°ÝÃD¦n¤F
Àx¦s®æA1 ·|±q¥~³¡±µ¦¬¸ê®Æ (DDE±µ¦¬¶}½L»ù)
¨Ò¦p ¥x¿n¹q¦¨¥æ»ù
°²³]Àx¦s®æB1¬O¬Q¤é¦¬½L»ù(DDE±µ¦¬¦¬½L»ù)
¦pªG·í¤Ñ¦¨¥æ»ù¤j©ó¦¬½L»ù
´N·|°õ¦æ°e³æ
¦ý¬O§Ú¼g¥X¨Óªºµ{¦¡
³£n¥Î¤H¤u¥h«ö°õ¦æ
¨S¦³¿ìªk¦Û°Ê
§ÚGOOGLE¤F¤@¤U
ºô¸ô¤W³£¬O±Ð¨Ï¥Î calculate ©Mchange³o¨âÓ«ü¥O
¦]¬°±µ¦¬¥~³¡¸ê®Æ
©Ò¥H¥u¯à¨Ï¥Îcalculate
¦ý§Ú¸Õ¤F¤@¤U
µo²{¨âÓ°ÝÃD
1. §Ú¬O§Q¥ÎC1=A1-B1
if C1 >0 Then °õ¦æ
µM«á¦^¨ìsheet1, µo²{C1>0ªº®ÉÔ¤£·|¦Û¤v°Ê
¤@©wn¦^¨ìVB¸Ì±«ö°õ¦æ, ¦ý«ö¤F°õ¦æ, ´N·|¤@ª½°e³æ°eÓ¤£°±, ¦³¨S¦³¿ìªk³]©w¦¨C1ÅÜ°Ê1¦¸, ¥u°õ¦æ1¦¸©O??
2. §Ú¥Î¤F
Application.EnableEvents = False
ÁöµM¤£·|¤@ª½°õ¦æ°Ê§@
¦ý¬O¦^¨ìsheet1, µo²{C1>0 ªº®ÉÔÁÙ¬O¤£·|¦Û¤v°Ê§@
Ãø¹Dn¥Îchange³oÓ«ü¥O¶Ü? (¦ýC1¬O¤½¦¡ªü...)
¦ý¬O¥Î¤Fchange
·|¥X²{¤@Óª¬ªp
´N¬O¨C¦¸«ö°õ¦æ
´N·|¥X²{¥¨¶°ªº®Ø®Ø¥X¨Ó.... |
|
excel VBA ¦nÃø³á...
|
|
|
|
|
- ©«¤l
- 18
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 19
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- excel 2007
- ¾\ŪÅv
- 10
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2013-5-7
- ³Ì«áµn¿ý
- 2018-6-25
|
¥»©«³Ì«á¥Ñ shy ©ó 2013-5-9 11:19 ½s¿è
¦^´_ 4# GBKEE
§Ú¨S¦³¿ìªk¤W¶ÇÀÉ®×
¦n©Ç³á
§Ú¶K§Ú¼gªº
A B C D
1 ¥N½X °Ó«~ ¦¨¥æ ¬Q¦¬
2 2330 ¥x¿n¹q 115.5 114.5
3
4 1
§Ú¥´¦bthis workbook
Private Declare Function PlaceOrderVB Lib "TC_Excel_Addin.xll" (ByVal OrderInfo As String) As String
Option Explicit
------------------------------------------------------------------------------------
Private Sub Worksheet_calculate()
Dim tmpResult As String
Dim OrderInfo_1 As String
tmpResult = ""
OrderInfo_1 = "" ' ¸Ì±¬OÓ¸ê, ¤U³æªº³]©w
tmpResult = PlaceOrderVB(OrderInfo_1)
MsgBox tmpResult
Application.EnableEvents = False
If Range("D4") >= 0 Then
PlaceOrderVB (OrderInfo_1)
End If
End Sub |
|
excel VBA ¦nÃø³á...
|
|
|
|
|
- ©«¤l
- 18
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 19
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- excel 2007
- ¾\ŪÅv
- 10
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2013-5-7
- ³Ì«áµn¿ý
- 2018-6-25
|
¦^´_ 6# GBKEE
§Úª¾¹Dn³o¼Ë¤W¶Çªü
¦ý¬O«ö¤F¤W¶Ç«á
·|¥X²{
¹ï¤£°_¡A¤£¤ä«ù¤W¶Ç¦¹ÃþÂX®i¦Wªºªþ¥ó¡C
³o¼Ëªº¦r... |
|
excel VBA ¦nÃø³á...
|
|
|
|
|
- ©«¤l
- 18
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 19
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- excel 2007
- ¾\ŪÅv
- 10
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2013-5-7
- ³Ì«áµn¿ý
- 2018-6-25
|
¦^´_ 6# GBKEE
Åܦ¨³o¼Ë??
Private Declare Function PlaceOrderVB Lib "TC_Excel_Addin.xll" (ByVal OrderInfo As String) As String
Option Explicit
------------------------------------------------------------------------------------
Private Sub Worksheet_calculate()
Dim tmpResult As String
Dim OrderInfo_1 As String
tmpResult = ""
OrderInfo_1 = "" ' ¸Ì±¬OÓ¸ê, ¤U³æªº³]©w
tmpResult = PlaceOrderVB(OrderInfo_1)
MsgBox tmpResult
Application.EnableEvents = False
If Range("D4") >= 0 Then
PlaceOrderVB (OrderInfo_1)
End If
Application.EnableEvents =ture
End Sub |
|
excel VBA ¦nÃø³á...
|
|
|
|
|
- ©«¤l
- 18
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 19
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- excel 2007
- ¾\ŪÅv
- 10
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2013-5-7
- ³Ì«áµn¿ý
- 2018-6-25
|
¥»©«³Ì«á¥Ñ shy ©ó 2013-5-9 12:53 ½s¿è
¦^´_ 9# GBKEE
sorry
¬Otrue¤~¹ï
©Ò¥H¬O³o¼Ë??
Private Declare Function PlaceOrderVB Lib "TC_Excel_Addin.xll" (ByVal OrderInfo As String) As String
Option Explicit
------------------------------------------------------------------------------------
Private Sub Worksheet_calculate()
Dim tmpResult As String
Dim OrderInfo_1 As String
tmpResult = ""
OrderInfo_1 = "" ' ¸Ì±¬OÓ¸ê, ¤U³æªº³]©w
tmpResult = PlaceOrderVB(OrderInfo_1)
MsgBox tmpResult
Application.EnableEvents = False
If Range("D4") >= 0 Then
PlaceOrderVB (OrderInfo_1)
End If
Application.EnableEvents =true
End Sub
ÁÙ¬O¤£·|¦Û¤v°Ê.... |
|
excel VBA ¦nÃø³á...
|
|
|
|
|