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

[µo°Ý] ¿z¿ï¸ê®Æ¨Ã¥B©ñ¨ì·sªºSheet¸Ì

[µo°Ý] ¿z¿ï¸ê®Æ¨Ã¥B©ñ¨ì·sªºSheet¸Ì

¥»©«³Ì«á¥Ñ candy516 ©ó 2011-3-23 01:48 ½s¿è

¦U¦ì«e½ú§A­Ì¦n¡G
    §Ú¤S¦³¤@­Ó°ÝÃD·Q­n½Ð±Ð¤j®a¡A¬OÃö©ó¸ê®Æ¿z¿ïªº!§Ú¥»¨Ó·Q¥Î¤H¤u¤â°Êªº¤èªk¤@µ§¤@µ§¿z¿ï¡A¦ý§Úªº«ü¾É±Ð±Â¤@ª½¥s§Ú¼gµ{¦¡= = ¦ý§Ú¬O­Ó¶W¯Å¶W¯Å·s¤â¡A¤]¨S¦³¥¿¦¡¾Ç¹LVBA!Sheet1¬O¨CÀɪѲ¼ªº°£®§¤é¡ASheet2~11«h¬O¤Q¦~¶¡¨CªÑªº¤é³ø¹S²v¡C³Ì«á¤@­ÓSheet¬O§Ú·Q­nªºµ²ªG¡C±µ¤U¨Ó§Ú»Ý­n¿z¿ï¥X¨C¤@ÀɪѲ¼¦b°£®§¤é«á14¤Ñªº¤é³ø¹S²v(¥]§t°£®§¤é¦@15¤Ñ)¡CÁ|¦C¨Ó»¡¡A¦bSheet1¤¤2010ªº1234¶ÂªQ¥¦ªº°£®§¤é¬O20100719¡A«h¦bSheet2¤¤±N20100719~20100801¶ÂªQªº¤é³ø¹S²v§ì¦Ü¤@­Ó·sªºSheet¤¤(¥]§t¤é´Á¤]¤@°_§ì)¡C½Ð°Ý³o¼ËÁcº¾ªº¨BÆJ¡AVBA¥i¥H¿ì¨ì¶Ü?
§Æ±æ¦U¦ì¥i¥HÀ°À°§Ú!ÁÂÁÂ!

³ø¹S²v.rar (300.4 KB)

¦^´_ 32# candy516

°²¦p§A³o¨Ç¸ê®Æ¬O±q¨t²Î¤¤©Îºô¸ôDownloadªº
³o¤w¸g¬O¬J¦¨ªí®æ¡A¦ý¬O³o¼Ëªº¸ê®Æ±Æ¦C¦b¸ê®Æ®w­ì«h¤¤¬»Ä²¤F¤@¦C¬°¤@µ§¸ê®Æªº­ì«h
³o¼Ëªºªí®æ§AµLªk¨Ï¥ÎEXCEL¤º«Øªº¿z¿ï¥\¯à©Î¼Ï¯Ã¤ÀªRªí
¦Ñ®L«e½úªºÀɮפ¤§A·|µo²{¬O±N©Ò¦³¦~«×ªº¸ê®Æ
¨Ì·Ó¤é´Á¡BªÑ²¼¦WºÙ¡B»ù®æ
¤@µ§¤@µ§¦a¦b¦P¤@¤u§@ªí¤¤§e²{
³o¼Ë§A´N«Ü»´©ö¦a¨Ï¥Î¼Ï¯Ã¤ÀªR©Î¬O¥H¿z¿ï¥\¯àÀò±o·Q­nªº¸ê®Æ
©Ò¥H­n§â§Aªºªí®æ¾ã²z¦¨¸ò¦Ñ®L«e½ú¤@¼Ëªº¸ê®Æªí
§Aı±o§A­nªá¦h¤Ö®É¶¡¸òÅé¤O¤~¯à§¹¦¨
©Ò¥H¡A¦pªG§A¬O³vµ§¸ê®ÆKEYªº«Ø¥ß¸ê®Æªí®É
¨º»òª½±µ°µ¦¨¦Ñ®L«e½úªº®æ¦¡¡A¬O¤£¬O´N¥i¥H¤Ö±¼³o­Ó¾ã²zµ{§Ç
³o´N¬O§Ú©Ò»¡À¿§¾ªÑ°Õ!
¦Ñ®L«e½ú¤£ª¾¹DÀ¿¦n¨S?¥L»¡ÁÙ¦b§V¤O«ÝÄò©O
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 31# Hsieh


²×©ó¸Ñ¨M³o­Ó°ÝÃD¤F!= =
ÁÂÁ«e½ú~

TOP

«e½ú­Ì¦n~
¥¿³W¤Æ¬O«ü±N³o¨Ç¸ê®Æªí³æ§â¾ã²z¦¨¤@©wªº®æ¦¡¶Ü?¬OÅý¸ê®Æ§ó¦³¯´§Ç¶Ü?!
©Ò¥H»¡¥¿³W¤Æ¬O¤]»Ý­n¥Îµ{¦¡½X¨Ó°õ¦æÁÙ¬O»¡¹³¬O¼Ï¯Ã¤ÀªR¤§Ãþªº¶Ü?
¥t¥~¤@°Ý¡A¡§À¿§¾ªÑ¡¨¬O¤°»ò·N«ä?
ÁÂÁÂ~^^

TOP

¦^´_ 28# candy516

¥¿³W¤Æªí®æ¬O®Ú¥»¸Ñ¨M¤§¹D
¤£¹L±o­n¥ýÀ¿§¹§¾ªÑ³á

¦Ü©óµ{¦¡°ÝÃDÂI¬O¥X¦b
Set C = .Columns("A").Find(d(ky), lookat:=xlWhole)
Set B = .Rows(1).Find(Split(ky, ",")(0), lookat:=xlPart)
¥[¤J·j´M°Ñ¼Æ´N¯à¥¿½T§ä¨ì¸ê®Æ¤F
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 26# Hsieh


«e½ú±z¦n¡G
    ¦bªþÀɸ̪ºSHEET1¤¤¡AA5ÃÒ¨é¥N½X¬°3009¡A§Ú¬O·Q­n§ì¥X20050103«á¤­¤Ñ(§t·í¤Ñ)¡A
©Ò¥H¥¿½TÀ³¸Ó§ì¨úªº¸ê®Æ¬°2005/1/7  -7.7104¡A¦ýµ{¦¡¶]¥X¨ÓÅܦ¨2005/11/9  7.402!
§Ú¬ã¨s¤@¤Uµo²{¡A¥u­n­ì©l¸ê®Æ¬O1¡B2¤ëªº³£¬O¤£¹ïªº­C!
¤S­n³Â·Ð±zÀ°§Ú¸Ñµª¤@¤U¡A¤£¦n·N«ä!
ÁÂÁ±z!^^

©P³ø¹S²v.rar (309.68 KB)

TOP

¦^´_ 26# Hsieh


§Ú¤]¬O·Q»¡¬O¨ºÃ䪺°ÝÃD,§Ú¤]°µ¹L­×§ï!= =
¦ý¨S¦³¦¨¥\¡A ©Ò¥H¬O¥u­n§â®æ¦¡§ï±¼§Y¥i¡A¹ï§a!
ÁÂÁ±z­ò!^^

TOP

¦^´_ 25# candy516
  1. Sub ex()
  2. On Error Resume Next
  3. Dim A As Range, B As Range, B1 As Range, B2 As Range, C As Range, Rng As Range, Rng1 As Range, d As Object
  4. Set d = CreateObject("Scripting.Dictionary")
  5. Set sht = Sheets.Add(after:=Sheets(1))
  6. Application.ScreenUpdating = False
  7. With Sheet1
  8.    For Each A In .Range(.[A2], .[A65536].End(xlUp))
  9.       mystr = A & "," & Left(A.Offset(, 1), 4)
  10.      '§ASheet1ªºAÄæ¬O¥H¤é´Á®æ¦¡yyyy/m/d¿é¤J¡A¦ý®æ¦¡³]¦¨yyyymmdd¡A©Ò¥H¡A³y¦¨«D¥þ³¡¬°8½X
  11.    '¥ÎTEXTÄݩʱo¨ì©Ò¨£¦r¦ê
  12.       d(mystr) = DateValue(Format(A.Offset(, 1).Text, "0000/00/00"))
  13.       If Err.Number <> 0 Then MsgBox A & A.Offset(, 1)
  14.    Next
  15. End With
  16. k = 1: r = 1
  17. For Each ky In d.keys
  18. y = Split(ky, ",")(1)
  19. With Sheets(y)
  20. Set C = .Columns("A").Find(d(ky))
  21. Set B = .Rows(1).Find(Split(ky, ",")(0))
  22. If Not C Is Nothing And Not B Is Nothing Then
  23. x = Application.Max(3, C.Row - 14)
  24.    Set Rng = .Cells(x, 1).Resize(15, 1)
  25.    Set Rng1 = .Cells(x, B.Column).Resize(15, 1)
  26.    With sht
  27.       Rng.Copy .Cells(r, k)
  28.       Rng1.Copy .Cells(r, k + 1)
  29.       .Cells(r, 3) = y & "¦~²Ä" & B.Column - 1 & "µ§"
  30.    End With
  31.    r = r + 15
  32.    Else
  33.    MsgBox "µL¦¹°£Åv¸ê®Æ"
  34. End If
  35. End With
  36. Next
  37. Application.ScreenUpdating = True
  38. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 23# Hsieh


   
«e½ú±z¦n~
§Ú²{¦b¤S¦^Âk¨ì¥»¥DÃD¤@¶}©lªºµ{¦¡½X¡A
§Ú²{¦b´«¿z¿ï¥X¨S¶ñÅvªÑ²¼ªº³ø¹S²v¡A§Ú±NÀɮפU¸ü¦¨¤@¼Ëªº®æ¦¡¡A
¦ý¶K¤Wµ{¦¡½X°õ¦æ«á¡A¥¦»¡«¬ºA¤£²Å!
½Ð°Ý¬O­þ¸Ì¥X¤F°ÝÃD!?
§Ú¬O¥Î¥H¤Uªºµ{¦¡½X!
  1. Sub ex()
  2. Dim A As Range, B As Range, B1 As Range, B2 As Range, C As Range, Rng As Range, Rng1 As Range, d As Object
  3. Set d = CreateObject("Scripting.Dictionary")
  4. Set sht = Sheets.Add(after:=Sheets(1))
  5. Application.ScreenUpdating = False
  6. With Sheet1
  7.    For Each A In .Range(.[A2], .[A65536].End(xlUp))
  8.       mystr = A & "," & Left(A.Offset(, 1), 4)
  9.       d(mystr) = DateValue(Format(A.Offset(, 1), "0000/00/00"))
  10.    Next
  11. End With
  12. k = 1: r = 1
  13. For Each ky In d.keys
  14. y = Split(ky, ",")(1)
  15. With Sheets(y)
  16. Set C = .Columns("A").Find(d(ky))
  17. Set B = .Rows(1).Find(Split(ky, ",")(0))
  18. If Not C Is Nothing And Not B Is Nothing Then
  19. x = Application.Max(3, C.Row - 14)
  20.    Set Rng = .Cells(x, 1).Resize(15, 1)
  21.    Set Rng1 = .Cells(x, B.Column).Resize(15, 1)
  22.    With sht
  23.       Rng.Copy .Cells(r, k)
  24.       Rng1.Copy .Cells(r, k + 1)
  25.       .Cells(r, 3) = y & "¦~²Ä" & B.Column - 1 & "µ§"
  26.    End With
  27.    r = r + 15
  28.    Else
  29.    MsgBox "µL¦¹°£Åv¸ê®Æ"
  30. End If
  31. End With
  32. Next
  33. Application.ScreenUpdating = True
  34. End Sub
½Æ»s¥N½X
(¦]¬°¸ê®ÆÀɮפӤj¡A©Ò¥H§Ú¥ý§R°£¨ä¥L¤E¦~ªº¸ê®Æ¡A¥u³Ñ2010)

ÁÂÁ±z!^^

Test¨S¶ñ®§ªº­ÓªÑ¶g³ø¹S²v.rar (856.55 KB)

TOP

¦^´_ 23# Hsieh


ÁÂÁ«e½úªº¸Ñ»¡!
«e½ú©Ò¼gªºµ{¦¡½X¯uªºÀ°§Ú«Ü¤jªº¦£¡A
§Ú²{¦b¥i¥H¦Û¥Ñªº§ó§ï§Ú·Q­n§ì¨úªºÄæ¦ì!
©ÎªÌ¬O¯S©w­þ¤@¤Ñªº¸ê®Æ!
¯uªº«Ü·PÁ±z!^^
ÁÂÁÂ!

TOP

        ÀR«ä¦Û¦b : §Ú­Ì­n°µ¦nªÀ·|ªºÀô«O¡A¤]­n°µ¦n¤º¤ßªºÀô«O¡C
ªð¦^¦Cªí ¤W¤@¥DÃD