- ©«¤l
- 28
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 54
- ÂI¦W
- 0
- §@·~¨t²Î
- windows xp pro
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x«n¥«
- µù¥U®É¶¡
- 2010-5-5
- ³Ì«áµn¿ý
- 2016-6-8
|
HsiehªO¤j§A¦n
¥H«e§Ú¦b¾Ç®Õ®É©Ò±Ðªº ¤@¶}©l¥²¥ýn¶}±ÒDDEªºªÑ²¼³nÅé
§Ú¥H¤é²±¬°¨Ò ©Ò¥Hn¥ý¶}±Ò¥L¸Ì±ªº¤@Ó Excel DDE ¤§«á¦A¶}±Ò EXCEL ¤~¯à±Ò°Ê
µM«á§ÚÌ·|¦bEXCEL ¤@¶}±Ò®É check ¬O§_³s½u¦¨¥\
¤§«á¦A¼g¤J¤U±µ{¦¡
Sub ¸ü¤J¤é²±DDE()
With ThisWorkbook.Worksheets("¥~³¡¸ê®Æ")
.Cells.Clear
'¼g¤J®É¶¡
.Range("B1").Formula = "=DDEEXCEL|FUTURETXF" & NearMonth & NearYear & "!®É¶¡"
end with
¦Ü©óDDEEXCEL|FUTURETXF" & NearMonth & NearYear & "!®É¶¡ ¬O¬ÝÓDDE³nÅé©w¸qªº
¥H¤é²±¬°¨Ò ·í¶}±ÒEXCEL DDE §â¥L©ì¦²¨ì EXCEL¤W®É ´N·|¥X²{¤W± ¤§«á¸Ì±ªº¦~¤ë¦A³]ÅܼÆ
¦p¦¹ ¦Ü©ónÂ^¨ú¥LÅܰʪº¸ê®Æ «h¬O¨Ï¥ÎDDE¶Ç°e¸ê®Æ¨ìEXCEL IJµoªºcalculate ¨Æ¥ó¯S©Ê
¥h§PÂ_·s¶Ç¨ÓªºÈ»PªºÈ¬O§_¦³¬Û¦P ¦pªG¤£¬Û¦P´N°O¿ý
Dim NewVolume As Long
Dim nRow As Long
With ThisWorkbook.Worksheets("¥x«ü´ÁDDE")
If IsNumeric(.Range("A1")) = True Then
NewVolume = .Range("A1")
If NewVolume <> TXoldVolume Then
'±N§Y®É»ù®t¤Î¥x«ü´Á§Y®É¦¨¥æ»ù³v¦æ¼g¤J¦UÄæ
With ThisWorkbook.Worksheets("ø¹Ï¸ê®Æ")
nRow = .Range("B65536").End(xlUp).Row
If nRow = 1 And .Range("B1") = "" Then
.Cells(1, 1) = Time
.Cells(1, 2) = ThisWorkbook.Worksheets("¥~³¡¸ê®Æ").Range("C3") '¥x«ü´Á»ù®æ
With ThisWorkbook.Worksheets("¥~³¡¸ê®Æ")
If IsNumeric(.Range("C3")) And IsNumeric(.Range("C11")) And _
IsNumeric(.Range("C19")) Then
ThisWorkbook.Worksheets("ø¹Ï¸ê®Æ").Cells(1, 5) = _
CalSpread(.Range("C11"), .Range("C19"), .Range("C3")) '¥Ø«e»ù®t
End If
End With |
|