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

EXCEL¥~³¡¸ê®Æ¨C¤ÀÄÁ¦Û°Ê¬ö¿ý§ó·s¹Lªº­È(¨DÀ°§U)

EXCEL¥~³¡¸ê®Æ¨C¤ÀÄÁ¦Û°Ê¬ö¿ý§ó·s¹Lªº­È(¨DÀ°§U)

¨C¤Ñ§Ú³£·|±q¥~³¡¸ê®ÆŪ¨ú¡A·Q½Ð°Ý¤@¤U«ç¼Ë¤l¥i¥HÅý¨C¤ÀÄÁªº¸ê®Æ­È¦Û°Ê©¹¤U¬ö¿ý¥i¥HÅý§Ú§@¥X¦±½u¹Ï¡C
1.§Æ±æ¯à±N°O¿ýªí³oªí³æ¨C¤ÀÄÁŪ¨úªº¥~³¡¸ê®Æ,ªºA6¨ìZ6³o±Æ¼Æ¦r,¥H¶K¤W­È¤£¬O¶K¤W¤½¦¡ªº¤è¦¡ªí²{¦bA11¨ìZ11¤@ª½©¹¤U¦Û°Ê°O¿ý¨ìA280¨ìZ280
2.§Æ±æ¯à§PÂ_¥~³¡¸ê®Æ¦³§ó·s,¤~©¹¤U¦Û°Ê°O¿ý,¥H´î¤Ö¦P¼Ë¸ê®Æ¦A­«½Æ°O¿ý
3.§Æ±æ¦b09:00ÂI¶}½L®É¤~¶}©l¦Û°Ê¿é¤J13:30·|¦Û°Êµ²§ô¦Û°Ê°O¿ý
§Æ±æ¦³¤H¯à¬°§Ú¸Ñ´b¡A·PÁÂ!
½d¨ÒÀɪþ¤W

2011buysell.rar (53.52 KB)

¦^´_ 1# zz8825252
2.§Æ±æ¯à§PÂ_¥~³¡¸ê®Æ¦³§ó·s,¤~©¹¤U¦Û°Ê°O¿ý,¥H´î¤Ö¦P¼Ë¸ê®Æ¦A­«½Æ°O¿ý
¥~³¡¸ê®Æ¦³§ó·s ¤£¤@©w¬O¨C¤ÀÄÁªºÅÜ°Ê¥u¦³¤@µ§ªº,
³o¬OThisWorkbookªºµ{¦¡½X Àɮ׶}±Ò®É°õ¦æªºµ{§Ç
  1. Private Sub Workbook_Open()
  2.     Run "Sheet2.TheRecord"   '°õ¦æ  "¬ö¿ýªí" ->Sheet2ªºTheRecordµ{§Ç
  3. End Sub
½Æ»s¥N½X

³o¬O "¬ö¿ýªí" Sheet2ªºµ{¦¡½X  
¬ö¿ýªí ¤¤ ¸ê®Æ°Ï ¤½¦¡¼Æ­È¦³§ïÅÜ®É ·|±Ò°Ê³o  Worksheet_Calculate ¤u§@ªí¹w³]¨Æ¥ó
  1. Option Explicit
  2. Public Record As String, Rng As Range
  3. Private Sub Worksheet_Calculate()   
  4.     Dim Trng As Range
  5.     If Record <> Join(Application.Transpose(Application.Transpose(Rng)), "") And Time >= #9:00:00 AM# And Time <=
  6. #1:30:00 PM# Then
  7.         Set Trng = Cells(Rows.Count, "a").End(xlUp)  'AÄ橳³¡¦C©¹¤W¦³¸ê®Æªº¦ì¸m
  8.         If Trng <> "" Then Set Trng = Trng.Offset(1)
  9.         Trng.Resize(, Rng.Columns.Count) = Rng.Value
  10.     End If
  11.     TheRecord
  12. End Sub
  13. '''''³o¤]¬O¬O "¬ö¿ýªí" Sheet2ªºµ{¦¡½X
  14. Private Sub TheRecord()
  15.     Set Rng = [A6:Z6]   '¬ö¿ýªí¤¤ªº¸ê®Æ
  16.     Record = Join(Application.Transpose(Application.Transpose(Rng)), "")   '²Õ¦X¸ê®Æ°Ïªº¤å¦r
  17.     If Time < #9:00:00 AM# Then Range("A11", Range("A11").End(xlDown)).Resize(, Rng.Columns.Count) = ""
  18. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : °µ¸Ó°µªº¨Æ¬O´¼¼z¡A°µ¤£¸Ó°µªº¨Æ¬O·Mè¡C
ªð¦^¦Cªí ¤W¤@¥DÃD