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

[µo°Ý] ½Ð°Ý¦p¦ó±N¥H³s±µEXCELªºDDE¼Æ¾Ú¨C¤ÀÄÁ¬ö¿ý¤U¨Ó¡H

[µo°Ý] ½Ð°Ý¦p¦ó±N¥H³s±µEXCELªºDDE¼Æ¾Ú¨C¤ÀÄÁ¬ö¿ý¤U¨Ó¡H

ªO¥D¡A¦U¦ì«e½ú¤j®a¦n

¨ä¹ê³o­Ó°ÝÃD¡A§Ú¤§«e¤w¸g¦b½׾«ôŪ¹L¬ÛÃö¤å³¹¡A¤×¨ä¬Ojimmy¤jªº¨º½g¸g¨å¤å³¹
¦]¬°¤p§Ì¥»¨­ªº°µªk©M¬Ý½L³nÅé¡]§Ú¬O¥Îyeswin¡^¸ò¤§«ejimmy¤jªº¤£¤@¼Ë
©Ò¥H§Ú§âGBKEE¤j¤À¨Éªºµ{¦¡½Xµy·L§ï¤F¤@¤U¡A¥i¬OÁÙ¬O¤£¯à¥Î....¬G·Q½Ð°ÝGBKEE¤j¡A§Ú¸Ó«ç»ò§ï¤~¥i¥H¨Ï¥Î

½Ð¥ýÅý§Ú²³æ»¡©ú§Úªº³]©w¡G
1.¤p§Ì¬O¥ý±N©Ò¦³§Ú»Ý­nªº¸ê®Æ¡]´ÁÅv¡^¥þ³¡³£¥ý¶°¤¤¦b¤@­Ó¤u§@ªí(sheet 1)¤¤¡]³o¥i¯à¸ò¨ä¥L«e½ú¤£¤@¼Ë¡^
2.¦A¬D¥X§Ú¤µ¤ÑÃöª`ªº¬Y¤@ÀÉ¡]¤ñ¦p»¡¤j¥x¡^¡A¦A±N¤j¥xªº¬ÛÃö¸ê°T«ü¦V²Ä¤G­Ó¤u§@ªí(sheet 2)
3.§Ú§Æ±æ¯à±N¤j¥xªº¨C¤@¤ÀÄÁ¸ê®Æ³£¬ö¿ý¦bsheet 2¸Ì

¤]´N¬O»¡¡A§Ú¤£¬Oª½±µ¬ö¿ýDDE¦^¶Çªº¸ê®Æ¡A§Ú¬O¬ö¿ýsheet 1¤¤¸ê®Æ®æªºÅÜ°Ê¡A
©Ò¥H§Ú±NGBKEE¤jªºµ{¦¡½Xdownload§ï¦¨¤Fchange¡A¥i¬OÁÙ¬O¤£¯à¥Î....¥i§_½Ð°ÝGBKEE¤j¡A§Ú¸Ó«ç»ò§ï¤~¥i¥H¨Ï¥Î¡H

½Ð¬d¾\§Úªþ¤WªºÀɮסA·PÁ¦U¦ì

DDE(Yeswin).xls.zip (25.87 KB)

§Ú·R³Â»¶®a±Ú°Q½×°Ï¡I¡I

¦^´_ 55# j1221


    ³o­ÓÀɮתºµ{¦¡¡A ¥u¦³²Ä¤@®Ú(8:50) ªº³Ì°ª¡B³Ì§C¬O¥¿½Tªº¡F

8:55¤À¶}©l¡A ³Ì°ª¡B³Ì§C³£¬O·í¤éªº³Ì°ª¡B³Ì§C¡A ¤£·|¦A§ïÅÜ....................

¥Ø«e¥u¦³¬ö¿ý¤U²Ä5¤ÀK®Éªºª¬ºA¡C

½Ð°Ý¦³¥¿½T§¹¾ãª¬ª©,¥i¥H°Ñ·Ó¶Ü?  ·PÁÂ!

TOP

Sheets("TXF").[AC7:AL100] = ""
'    Sheets("Stock").[I7:AG100] = ""
'   'Sheets("TWO").[B7:S19000] = ""
µ{¦¡½X¤¤¡A §A¬å¤FStock ¤ÎTWO ªº¬¡­¶Ã¯¡F ²MªÅ¸ê®Æ·|¥X²{°ÝÃD

TOP

¦^´_ 52# GBKEE

GBKEE ¤j¡A©êºp¤S¨Ó³Â·Ð§A¡C¤§«e¦V§A½Ð±Ðªº¡u¨C¤­¤ÀÄÁ¬ö¿ý¤@¦¸¼Æ¾Ú¡vªºÀɮסA§Ú¨Ï¥Î¤W¤@ª½¨S¦³°ÝÃD¡C

¦ý¬O§Ú¤§«e³£¬O¦b¶}½L«á¡A¤~¦³®É¶¡§âexcel¥´¶}¡A¨Ï¥Î¤W¨S¦³°ÝÃD¡C

¦ý³o¨â¤Ñ¡A§Ú³£¦b½L«e(¬ù8:30)ªº®É­Ô¥´excel¥´¶}¡A¦ý¨C¨ì¤F8:40¡]§Ú¦³§ïÅܤF¬ö¿ýªº®É¶¡¡A§Æ±æ±q8:40¶}©l¡^¡A´N·|¸õ¥X¡u¨S¦³³]©wª«¥óÅܼƩΠWith °Ï¶ôÅܼơvªº°T®§¡C

§Ú§ä¤F¥b¤Ñ¡A³£¨S¦³µo²{°ÝÃD(¦]¬°§Ú°ò¥»¤W¨S¦³§ó°Ê¤§«eªº½d¨Ò¡A¥u¬O¦h¼W¥[¤F´X­Ó¨ä¥L¸ê®Æ®æ¡A®É¶¡§Ç¦C¤]¨S¦³°ÝÃD)¡A¥i§_½Ð§AÀ°¦£¬Ý¬Ý¡H

·Ð½Ð°Ñ¾\ªþÀÉ¡AÁÂÁ§A¡I

TWT.rar (127.35 KB)
§Ú·R³Â»¶®a±Ú°Q½×°Ï¡I¡I

TOP

¦^´_ 50# c_c_lai

ÁÂÁÂc_c_lai ¤j¡I¤S¦h¾Ç¤F¤@©Û¡I
§Ú·R³Â»¶®a±Ú°Q½×°Ï¡I¡I

TOP

¥»©«³Ì«á¥Ñ j1221 ©ó 2014-2-5 20:08 ½s¿è

¦^´_ 52# GBKEE


¯uªº­C¡A§Ú­«·s¶}±Ò¤§«á´N¤@¤Á¥¿±`¤F....·PÁÂGBKEE¤j¡ã¡ã:D

TOP

¦^´_ 51# j1221
¨S¦³³o°ÝÃD ¤W¶Ç§AªºÀɮ׬ݬÝ
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¥»©«³Ì«á¥Ñ j1221 ©ó 2014-2-5 19:05 ½s¿è

¦^´_ 49# GBKEE



·PÁÂGBKEE¤j¡A¥i¥H¥Î¤F¡I¡I:D

¥u¬O¦³¤@­Ó°ÝÃD¡Aexcel¦b¶ñ¤J¸ê®Æ®É¡A¤@¦¸·|¶ñ¤J·í«eÀx¦s®æ©M¤U¤@®æ(¤ñ¦p»¡¥Ø«e¬O18:45¡A¥¦·|¦P®É¶ñ¤J18:50©M18:45)¡A½Ð°Ý¬°¤°»ò·|³o¼Ë©O¡H¡]·Ð½Ð¨£¤U¹Ï)

§Ú·R³Â»¶®a±Ú°Q½×°Ï¡I¡I

TOP

¦^´_ 48# j1221
¥H "TXF1" ¬°¨Ò¡G
  1.     With Sheets("TXF1")
  2.         Set TimeRange = .[A:A].Find(TimeSerial(Hour(Time), Minute(Time), Second(Time)), LookIn:=xlFormulas)
  3.         Set Rng = TimeRange.Offset(, 1).Resize(, 11)
  4.     End With
  5.     Rng.Value = Sheets("Main").Range("C9:M9").Value
½Æ»s¥N½X
«Øij­×§ï¬°¡G
  1.     With Sheets("TXF1")
  2.         Set TimeRange = .[A:A].Find(TimeSerial(Hour(Time), Minute(Time), Second(Time)), LookIn:=xlFormulas)
  3.         If Not TimeRange Is Nothing Then
  4.             TimeRange.Offset(, 1).Resize(, 11) = Sheets("Main").Range("C9:M9").Value
  5.         End If
  6.     End With
½Æ»s¥N½X
Range.Find() ·|¸Õ¹Ï§ä¨ì¸Ó¶µ¸ê°Tªº²Ä¤@­ÓÀx¦s®æ¡A¦pªG¨S¦³§ä¨ì²Å¦XªºÀx¦s®æ¡A
«h¦¹¤èªk "¶Ç¦^値" ·|¶Ç¦^ Nothing¡C
·í TimeRange ­È¬° Nothing¡A §A­ì¥»ªº¼gªk«h·|¥X¿ù¡C

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2014-2-5 16:58 ½s¿è

¦^´_ 48# j1221
¦]µ{¦¡ªº FIND ªº®É¶¡ ¤£¤@©w¸¨¦b00,05,10,15....¤ÀÄÁªº®É¶¡¤W
¾É­P¤u§@ªíAÄæFIND¤£¨ì¦Ó³y¦¨¿ù»~
  1. Dim xTime As String  '«Å§i¬°¦r¦ê«¬ºA ¶ÈThisWorkbook¼Ò²Õªºµ{§Ç¥i¥Î
  2. Private Sub Workbook_Open()
  3.     Sheets("TXF1").[B7:P19000] = ""
  4.     Sheets("MXF1").[B7:P19000] = ""
  5.     Sheets("EXF").[B7:P19000] = ""
  6.     Sheets("FXF").[B7:P19000] = ""
  7.     Sheets("TWT").[B7:P19000] = ""
  8.     Sheets("TWO").[B7:P19000] = ""
  9.     If Time >= TimeValue("08:45:00") And Time <= TimeValue("13:45:00") Then
  10.         '*** Àç·~®É¶¡¤º ¤£¤@©w¦b 00,05,10,15....ªº¤ÀÄÁ¤W  ******
  11.         xTime = Minute(Time) - Minute(Time) Mod 5       '¸¨¦b¤W¤@­Ó 5¤ÀÄÁ ,Mod:¨â¼Æ¬Û°£ªº¾l¼Æ
  12.         xTime = Format(TimeSerial(Hour(Time), xTime, 0), "h:mm:ss")
  13.         change
  14.     Else
  15.         xTime = "08:45:00"
  16.         Application.OnTime TimeValue(xTime), "ThisWorkbook.change"
  17.     End If
  18. End Sub
  19. Private Sub change()
  20.     Dim TimeRange As Range, Rng As Range, R As Range
  21.     ' ***  Time ®É¶¡ÂI¤£¤@©w¸¨¦b5¤ÀÄÁ¤W ********
  22.     'xTime¬°¸¨¦b 00,05,10,15....ªº¤ÀÄÁ¤Wªº®É¶¡,¥i½T©w¤@©w§ä±o¨ì
  23.     Set TimeRange = Sheets("TXF1").[A:A].Find(xTime, LookIn:=xlValues)  '§ï¬° ·j´M¤º®e
  24.     Set Rng = TimeRange.Offset(, 1).Resize(, 11)
  25.     Rng.Value = Sheets("Main").Range("C9:M9").Value
  26.    
  27.     Set TimeRange = Sheets("MXF1").[A:A].Find(xTime) '±µ¤UªºFind·|¨Ì¾Ú¤W¤@¦¸Findªº¿ï¶µ¨Ó·j´M
  28.     Set Rng = TimeRange.Offset(, 1).Resize(, 11)
  29.     Rng.Value = Sheets("Main").Range("C11:M11").Value
  30.    
  31.     Set TimeRange = Sheets("EXF").[A:A].Find(xTime)
  32.     Set Rng = TimeRange.Offset(, 1).Resize(, 11)
  33.     Rng.Value = Sheets("Main").Range("C12:M12").Value
  34.    
  35.     Set TimeRange = Sheets("FXF").[A:A].Find(xTime)
  36.     Set Rng = TimeRange.Offset(, 1).Resize(, 11)
  37.     Rng.Value = Sheets("Main").Range("C13:M13").Value
  38.    
  39.     Set TimeRange = Sheets("TWT").[A:A].Find(xTime)
  40.     Set Rng = TimeRange.Offset(, 1).Resize(, 17)
  41.     Rng.Value = Sheets("Main").Range("C2:U2").Value
  42.    
  43.     Set TimeRange = Sheets("TWO").[A:A].Find(xTime)
  44.     Set Rng = TimeRange.Offset(, 1).Resize(, 20)
  45.     Rng.Value = Sheets("Main").Range("C3:U3").Value
  46.    
  47.     If Time > TimeValue("13:45:00") Then Exit Sub
  48.    
  49.     xTime = Minute(Time) + 5 - Minute(Time) Mod 5               '¸¨¦b¤U¤@­Ó5¤ÀÄÁ
  50.     xTime = Format(TimeSerial(Hour(Time), xTime, 0), "h:mm:ss") '¸¨¦b 00,05,10,15....ªº¤ÀÄÁªº®É¶¡¤W
  51.     ' Now + TimeValue("00:05:00") ->¤£¤@©w¬O¸¨¦b 00,05,10,15....ªº¤ÀÄÁ¤W
  52.     Application.OnTime TimeValue(xTime), "ThisWorkbook.change"  '½T¹ê¦b¤U¤@­Ó5¤ÀÄÁÂI¤W°õ¦æ
  53. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : ¦h°µ¦h±o¡C¤Ö°µ¦h¥¢¡C
ªð¦^¦Cªí ¤W¤@¥DÃD