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

[µo°Ý] «ü©wÀx¦s®æupdate ¨ìorderlist

[µo°Ý] «ü©wÀx¦s®æupdate ¨ìorderlist

¥»©«³Ì«á¥Ñ eg0802 ©ó 2013-5-14 15:18 ½s¿è

HELP.rar (92.99 KB) ¦U¦ìª©¯«......¤p§Ì³Ìªñ¹J¨ìÃøÃD Àµ½Ð¤j¤jÀ°¦£!!  
»Ý¨D¦p¤U   JZT-BC Á`ªí ¸Ì­±¥]§t«Ü¦h¤u§@ªí   §Ú»Ý­n§â¤W¦âªº³¡¤À(ETD / ETA / Á`¥ó¼Æ / Á`ª÷ÃB) update ¦Ü orderlist.   ¤p§Ì¹ïVBA¤£¬O«ÜÀ´¡AÀµ¨D¤j¤jÀ°¦£!!! Orz.....
Jason

¦^´_ 1# eg0802
¸Õ¸Õ¬Ý
  1. Option Explicit
  2. Sub Ex()
  3.     Dim Sh As Worksheet, AR(1 To 2), Rng As Range, R  As Integer, i As Integer
  4.     AR(1) = Array("H", "I", "L", "M")                    'summary-2014 ¤¤ªºÄæ¦ì
  5.     For Each Sh In Workbooks("JZT BC-Á`ªí.xlsx").Sheets  'JZT BC-Á`ªí.xlsx¬¡­¶Ã¯ Sheets(ª«¥ó¶°¦X)
  6.         With Sh
  7.            With .[A:A].Find("Total", LOOKAT:=xlWhole)    '´M§äAÄ椤ªº"Total"
  8.                 .Cells(1, "B").Name = "QTY"              '¦ì©óBÄ檺¦s¦s®æ©R¦W
  9.                 .Cells(1, "I").Name = "TotalPrice"       '¦ì©óIÄ檺¦s¦s®æ©R¦W
  10.            End With
  11.            AR(2) = Array(.[QTY], .[TotalPrice], .[B24], .[C25])
  12.            With Workbooks("Order List 2014_0502.xls").Sheets("'summary-2014")
  13.                 R = .Cells(.Rows.Count, "H").End(xlUp).Offset(1).Row 'HÄæ:Àɮש³³¡©¹¤W¦³¸ê®Æ¤U¤@¦Cªº¦C¸¹
  14.                 '*** Order List 2014_0502.xls HÄ椤 10:65536 ¶¡ÁÙ¦³¸ê®Æ½Ð²M°£  ***
  15.                 For i = 0 To 3
  16.                     .Range(AR(1)(i) & R) = AR(2)(i)
  17.                 Next
  18.            End With
  19.         End With
  20.     Next
  21. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 2# GBKEE


    G¤j...¤£¦æ­C....¤£ª¾¹D¬O¤£¬O¤p§Ì¥Î¤£¹ï §Ú¦³¤W¶Ç¹Ï¤ù½Ð¤j¤jÀ°¦£¬Ý¤@¤U~~·P®¦
[attach]14982[/attach]
Jason

TOP

¦^´_ 2# GBKEE


    ©êºpG¤j  ¤£ª¾¬°¦ó¹Ï¤W¶Ç¤£¤F....¶]¤F±z¼gªº¥X²{¥H¤U¿ù»~«H®§

         °õ¦æ¶¥¬q¿ù»~'9
         °}¦C¯Á¤Þ¶W¥X½d³ò
Jason

TOP

¦^´_ 4# eg0802
Order List 2014_0502ªºAÄæ½s¸¹¤£ª¾¦³¦ó·N¸q?
¨â­ÓÀɮשñ¦b¦P¤@­Ó¸ê®Æ§¨¥Ø¿ý¤¤
JZT BC-Á`ªí¬¡­¶Ã¯¥Ñµ{¦¡½X¶}±Ò¡A¤£­n¨Æ¥ý¶}±Ò
°õ¦æ
Order List 2014_0502¬¡­¶Ã¯¤º¼Ò²Õµ{¦¡½X
  1. Sub Update_Data()
  2. Dim Ar()
  3. fs = ThisWorkbook.Path & "\JZT BC-Á`ªí.xlsx"
  4. With Workbooks.Open(fs)
  5.   For Each sh In .Sheets
  6.      With sh
  7.      a = .Columns("A").Find("Total", lookat:=xlWhole).Offset(, 1).Value
  8.      b = .Columns("H").Find("Total amount", lookat:=xlWhole).Offset(, 1).Value
  9.      c = .Columns("A").Find("DELIVERY:  ", lookat:=xlWhole).Offset(, 1).Value
  10.      d = .Columns("A").Find("IN WAREHOUSE DATE: ", lookat:=xlWhole).Offset(, 2).Value
  11.      ReDim Preserve Ar(s)
  12.      Ar(s) = Array(CStr(.Name), "", "", a, b, "", "", c, d)
  13.      s = s + 1
  14.      End With
  15.   Next
  16.   .Close 0
  17. End With
  18. If s > 0 Then ThisWorkbook.Sheets("summary-2014").[E10].Resize(s, 9) = Application.Transpose(Application.Transpose(Ar))
  19. End Sub
½Æ»s¥N½X
Order List 2014_0502.rar (18.3 KB)
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 5# Hsieh


    ¦¨¥\¤F!!! ·PÁÂH¤j  AÄæ½s¸¹¨S§Oªº·N«ä ´N¬O¤@ª½¶¶µÛ©¹¤U½s¦Ó¤w  ¥u¬O¦³®É­Ô¶}·|ªº®É­Ô¤è«K°Q½×Á¿½s¸¹¦Ó¤w!!  ·P®¦·P®¦ORZ...
Jason

TOP

¦^´_ 4# eg0802
¨â­ÓÀɮ׳£¬O¶}±Ò¤U°õ¦æªº¶Ü?
°õ¦æ¶¥¬q¿ù»~'9  ¦bµ{¦¡ªº­þ¤@¦æµ{¦¡½X?
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : ¡i®É¤é²öªÅ¹L¡j¤@­Ó¤H¦b¥@¶¡°µ¤F¦h¤Ö¨Æ¡A´Nµ¥©ó¹Ø©R¦³¦hªø¡C¦]¦¹¥²¶·»P®É¶¡Ävª§¡A¤Á²ö¨Ï®É¤éªÅ¹L¡C
ªð¦^¦Cªí ¤W¤@¥DÃD