ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

»ù®æ¬ö¿ýªº»yªk¦³¼g¿ù¶Ü??

¦^´_ 110# ÂŤÑÄR¦À
©ú¦­¦AÀ°§Ú´ú¸Õ¤@¤U³o°¦ "ªÑ²¼10C.xlsm" ªºµ{¦¡¡A
³o°¦¬O³æ¿W¥u±Ä¥Î Worksheet_Calculate() ¤èªk¡A
¨ÃµLÀ³¥Î "¦WºÙ©w¸q" ªº¤è¦¡¡C
»¡¥ÕÂI¥u³æ¯Âª½±µ    Worksheet_Calculate() ¶i¦æ
¸ê®Æ¼g¤J¡C ¦p¦³¤F´ú¸Õµ²ªG¦A¦æ§iª¾§Ú¡AÁÂÁ¡I
ªÑ²¼10C.rar (21.87 KB)
P.S.  §Ú·Q½T»{¥¦ªºµû®Ä¡A¦p OK ¤F¡A«h·|«Øij§A±Ä¥Î¡C

TOP

¦^´_ 111# c_c_lai

¦nªºC¤j¡A§Ú©ú¤Ñ¦A§i¶D§Aµ²ªG

TOP

¦^´_ 111# c_c_lai


   
¤W¹Ï¥Ü´ú¸Õµ²ªG¡A¦n¹³¦³¿ù»~ªº¦a¤è¡A¦A½ÐC¤j¬Ý¬Ý

TOP

¦^´_ 113# ÂŤÑÄR¦À
¥X²{¬Æ»ò¿ù»~°T®§¡H

TOP

¦^´_ 114# c_c_lai
§Ú­n¬Ý¬Ý¡A¦ý¬O§Ú²{¦b¤£¦b®a¡A±ßÂI§i¶DC¤j

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2016-4-13 08:42 ½s¿è

¦^´_ 114# c_c_lai
  1. Option Explicit
  2. Private Sub Worksheet_Calculate()
  3.     Dim Rng As Range, cts As Long
  4.     If Time < #8:30:00 AM# Or Time > #1:31:00 PM# Then Exit Sub     '  «DÀç·~®É¶¡
  5.     On Error GoTo ER:
  6.     For cts = 4 To Columns.Count Step 4
  7.         Set Rng = Cells(2, cts)
  8.         With Cells(Rows.Count, cts).End(xlUp)
  9.             '  Á`¶q¦WºÙ©Ò¦bªº³Ì©³¦C©¹¤W¨ì¦³¸ê®ÆªºÀx¦s®æ
  10.             If .Row = 2 Or .Row > 2 And .Value <> Rng.Value Then      '  (¦UªÑÁ`¶q¦³ÅÜ°Ê)
  11.                 .Offset(1, 1).NumberFormatLocal = "hh:mm:ss"          '  ³]©wÀx¦s®æ®æ¦¡ (®É¶¡)
  12.                 .Offset(1).Cells(1, -1).Resize(, 4) = Rng.Cells(, -1).Resize(, 4).Value
  13.             End If
  14.         End With
  15.     Next cts
  16. ER:
  17.     Stop
  18.     MsgBox "¿ù»~­È  " & Err & VBLF &  " cts=" & cts & " - " & Rng.Address & "  ³Ì«áªºÁ`¶q¬O¤u§@ªíªº³Ì¥kÄæ ->  .Resize(, 4).Value :¶W¥X¤u§@ªí½d³ò"    Resume   
  19. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¥»©«³Ì«á¥Ñ c_c_lai ©ó 2016-4-12 10:13 ½s¿è

¦^´_ 113# ÂŤÑÄR¦À
¤µ¤Ñ§A¬O¬Æ»ò®É¶¡¶}±Ò "ªÑ²¼10C.xlsm" ªº¡A¬Ý¹Ï¤ù²qÀ³§A¬O©ó½L«e«K¶}±Ò¥¦¡A
¦]¬°¥¼¶}½L®É±a¤J­È¬° #N/A¡A¬°«OÀI°_¨£±N§PÂ_ "Àç·~®É¶¡" ²¤¬°®¿«á
  1. If Time < #8:30:00 AM# Or Time > #1:31:00 PM# Then Exit Sub     '  «DÀç·~®É¶¡
½Æ»s¥N½X
­×§ï¦¨
  1. If Time < #8:35:00 AM# Or Time > #1:31:00 PM# Then Exit Sub     '  «DÀç·~®É¶¡
½Æ»s¥N½X
¦p¦¹"¤½¦¡" Äæ «K¯à¶Ç¤J ¥¿½Tªº"DDE ¶×¤J­È" ¤F¡C
¥Ø«e§A¥ý±N²Ä¤T¦C§R°£¡AÀx¦sÀɮ׫á¡A©ó "Àç·~®É¶¡" ¤º
¦A±q·s±Ò°Ê¸Õ¸Õ¡I

TOP

¦^´_ 116# GBKEE
À³¸Ó¬O¦p§Ú #117 ©Ò»¡ªºª¬ªp¡A½Æ»s #N/A ®É¥X²{«¬ºA¤£²Åªº°T®§¡C

TOP

¦^´_ 118# c_c_lai

¥´¶}  ªÑ²¼10C ¤£­n§ó·s DEE=#REF
°õ¦æ 116©«ªº Worksheet_Calculate()
  1. ER:
  2.     Stop
  3. MsgBox Err '¥i¦A¥[¤W¬Ý¬Ý
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 119# GBKEE
§Ú¥Î F8 §¹¾ã (Offline Trace) °lÁa¹L¤F¡A¹Ï¤ù¤º®e (#N/A) ¦p¦P
¥H«e¶}©l¦bª± DDE ®É¡A¸g±`©ó¶}½L®É·|¸I¨ì¥¦¡A¦Ó¥Î»yªk±N¤§Á׶}¡A
©Ò¥H¤@¬Ý¹Ï¤ù²Ä¤T¦C¤º®e«Kª¾°ÝÃD¥X¦b¦ó³B¡Cµ¥  ÂŤÑÄR¦À  ¨Ó¦LÃÒ§a¡I
(¦­´Á¦bª± TradeStation»P«á´Áªº MultiChart¡A»Ý­n DDE Data )

TOP

        ÀR«ä¦Û¦b : ¤â¤ß¦V¤U¬O§U¤H¡A¤â¤ß¦V¤W¬O¨D¤H¡F§U¤H§Ö¼Ö¡A¨D¤Hµh­W¡C
ªð¦^¦Cªí ¤W¤@¥DÃD