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

[µo°Ý] DDE¸ê®Æ¬ö¿ý°ÝÃD

¦^´_ 7# c_c_lai


    Sheets(2).[A65536].End(xlUp).Offset(1).Resize(, 7)= Sheets(1).[A2:G2].Value
³o¼Ëªº¼g¤J¬O¥H°}¦C«¬ºA¼g¤J¡A©Ò¥H¤£¯à¨Ï¥Î
    Sheets(2).[A65536].End(xlUp).Offset(1).Resize(, 7)= Sheets(1).[A2:G2].Text
§Aªº°ÝÃD¥u¬O®æ¦¡ªº°ÝÃD
¥u»Ý±N¨â­Ó¤u§@ªí¹ïÀ³Äæ¦ì®æ¦¡¥ý³]¦¨¬Û¦P§Y¥i¨Ï¥Î
¨Ò¦p:Sheets(1)ªºA2¬O®É¶¡¡A®æ¦¡À³¸Ó¬O"h:mm:ss"
§A´N§âSheets(2)ªºAÄæ®æ¦¡¤]³]©w¦¨"h:mm:ss"
play.gif
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 6# GBKEE
ÁÂÁ±z¡I ¸g¹L´ú¸Õªºµ²ªG¡Aµo²{¦pªG±N
Sheets("¤u§@ªí2").Cells(CIndex + 2, 1).Value = Sheets("¤u§@ªí1").Cells(2, 1).Value §ó§ï¦¨
Sheets("¤u§@ªí2").Cells(CIndex + 2, 1).Value = Sheets("¤u§@ªí1").Cells(2, 1).Text ªº½T OK¡C

¦ý¬O Sheets(2).[A65536].End(xlUp).Offset(1).Resize(, 7) = Sheets(1).[A2:G2].Value §ó§ï¬°
Sheets(2).[A65536].End(xlUp).Offset(1).Resize(, 7) = Sheets(1).[A2:G2].Text ´N¤£¦æ¤F¡A
µ²ªG³£¨S¦³¥ô¦ó¸ê®Æ¼g¤J¡A¨º°Z¤£»¡µLªk§¹¥þ¨Ï¥Î Sheets(2).[A65536].End(xlUp).Offset(1).Resize(, 7)
= Sheets(1).[A2:G2].Value ªº¤è¦¡³B²zËç¡H

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-4-26 18:01 ½s¿è

¦^´_ 4# c_c_lai
¤u§@ªí2 ªºÄæ¦ì ¶·³]¦n®æ¦¡
¬°¤°»ò ¤u§@ªí1 ªº A2 ¸ê®Æ¤@Âà¨ì ¤u§@ªí2 ªºÄæ¦ì¡A01:44 PM -> 0.572905 ¡H
0.572905¬O¼Æ¦r   01:44 PM ¬OÀx¦s®æªº®æ¦¡

Sheets("¤u§@ªí2").Cells(CIndex + 2, 1) = Sheets("¤u§@ªí1").Cells(2, 1).Text

TOP

¦^´_ 3# chenua
§Ú±NÀɮ׶ÇE-Mailµ¹©p¤F¡A¦¬¦¬¬Ý¡I

TOP

¦^´_ 2# Hsieh
¦^´_ 3# chenua
§Ú±N¥H¯à§@·~ªº ¤u§@ªí³æ ªþ¤W¡A Chenua ©p¥i¥H¸Õ¸Õ¬Ý¡A ¦pªþ¹Ï©Ò¨£¡C

Hsieh¤j¤j¡A·Q½Ð±Ð±zªº¬O¡G
(1) ¤W¹Ï¥ª¥b³¡¤À¡A ±q A2:A21 ªº¸ê®Æ«ÇÀ³¥Î If Not IsError(Sheets(1).[B2]) Then Sheets(2).[A65536].End(xlUp).Offset(1).Resize(, 7) =
       Sheets(1).[A2:G2].Value  ªº¤è¦¡³B²z¡C ¬°¤°»ò ¤u§@ªí1 ªº A2 ¸ê®Æ¤@Âà¨ì ¤u§@ªí2 ªºÄæ¦ì¡A01:44 PM -> 0.572905 ¡H
      ©Ò¥H§Ú«K±N¥¦ªº³B¸Ì§ï¦¨ Sheets("¤u§@ªí2").Cells(CIndex + 2, 1).Value = Sheets("¤u§@ªí1").Cells(2, 1).Value µ²ªG¤@¼Ë¡A
      ¦]¬°¥Ñ DDE ¶×¤Jªº®É¶¡Äæ¦ì¬O A3 (=YT|KS!TXFE2.123),  ¶×¤J¤º®e¬° 134459¡A¦¹Äæ¼Æ¾Ú¸ê®ÆµLªkÀ³¥Î¡A¬G±N¥¦Â૬¨ì A2 Äæ¦ì
      (=TIME(LEFT(A3,LEN(A3)-4),MID(A3,LEN(A3)-3,2),RIGHT(A3,2)))¡A¥Ø«e¦pªG±q A3 °Ï¥X¸ê®Æ´N·|¦³°ÝÃD¡A©Ò¥H¤S¦A±N¥¦§ï¦¨
     Sheets("¤u§@ªí2").Cells(CIndex + 2, 1).Value = TimeValue(Now) ªº¤è¦¡¡A¦pªþ¹Ï¤Wªº A22LA28¡C
(2) °²³]¥Ø«e§Ú·Q±N A2:G2¡AK2:P2¡A¥H¤Î H5:J5 µ¥Äæ¦ì¦P®É§ì¨úªº¸Ü¡A¦p¨Ï¥Î¹³ Sheets(2).[A65536].End(xlUp).Offset(1).Resize(, 7) =
       Sheets(1).[A2:G2].Value  ªº¤è¦¡¨Ó°µ³B²z¡A½Ð±Ð¦b»yªk¤WÀ³«ç»ò¨Óªí¹F©O¡H
ÁÂÁ±zªº«ü¾É¡I
DDE ¸ê®Æ¬ö¿ý°ÝÃD.rar (13.19 KB)

TOP

¦^´_ 2# Hsieh


    ¤j·§¥i¥H¤F..ÁÂÁª©¥D¸Ñµª

TOP

¦^´_ 1# chenua
¤@¯ë¼Ò²Õ¿é¤J¥H¤Uµ{¦¡½X¡A¦sÀÉ«á¶}±ÒÀɮסA´ú¸Õ¬Ý¬Ý
  1. Sub auto_open()'¶}Àɮɦ۰ʰõ¦æ¦¹¥¨¶°
  2. GetDDE  '©I¥sµ{§Ç
  3. End Sub
  4. Sub GetDDE()
  5. Dim T As Date
  6. T = Now  '¨ú±o²{¦b®É¶¡
  7. If Not IsError(Sheets(1).[B2]) Then Sheets(2).[A65536].End(xlUp).Offset(1).Resize(, 7) = Sheets(1).[A2:G2].Value  '¤u§@ªí1ªº¸ê®ÆDDE³sµ²¦¨¥\¼g¤J¤u§@ªí2
  8. Application.OnTime T + TimeValue("00:00:02"), "GetDDE"  '³o¬O¥H2¬í´ú¸Õ¡A¶¡¹j5¤ÀÄÁ§ï¦¨TimeValue("00:05:00"),
  9. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : µÊ®ð¼L¤Ú¤£¦n¡A¤ß¦a¦A¦n¤]¤£¯àºâ¬O¦n¤H¡C
ªð¦^¦Cªí ¤W¤@¥DÃD