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

¸ê®Æ¤ñ¹ï

ÁÂÁ§AªºÀ°¦£, §Ú¤µ¤Ñ²×©ó¦³®É¶¡¹Á¸Õ... ¦ý¦³¤Ö¤Ö°ÝÃD, ¤wªþ¤Wµ¹¤j¤j¬d¬Ý, ­n¨C­Ó¤ë³£¦³¤@­ÓWorksheet stock list, ¦]¬°¤£¤~, ¬G¦¹§Ú·|¥ý±N©Ò¦³data©ñ¦bsheets("Stock on hand"), µM«á¦A±N¸ê®Æ¶×¤Jsheets("Summary"), ¦ý¥Î¤F§Aªº¤èªk«á,  ¦pColumn A ¤ÎColumn B¬Û¦Pªº¸Ü.. ²Ä¤G¦æªº¸ê®Æ«K©ñ¶i¤F¹jÂ÷ªº¤ë¥÷, ¦ý¥i§_¦pcolumn A, column B, column C and column D ­n4­Ó¸ê®Æ¬Û¦P«K¦b¸Ó¤ë¥÷column´¡¤J¸ê®Æ, §_«h¦b¤U¤@¦æinsert row, µM«á´¡¤J»Pcolumn A ¤ÎB ¬Û¦Pªº¸ê®Æ,

¨ä¹ê³Ì²×ªº¸ê®Æ·|©ñ¦bsummary sheets, «K¥iª¾¹D¥þ¦~stock in and out movement, ÁÂÁ§AªºÀ°¦£
record.zip (105.42 KB)

TOP

¦^´_ 11# waterfox


    Sorry~ ³Ìªñ¤u§@¤ñ¸û¦£~ ©Ò¥H~ ¤ñ¸û¨S¦³®É¶¡¤W¨Ó~
    ±zªº°ÝÃD¥D­n¬O±N[Stock on hand]©ßÂà¨ì[Summary]¤¤~
    ¥i¸Õ¸ÕªþÀÉ~  ¦ý¬OÁÙ¦³¤@­Ó²Ä¤è¨S¦³¼g­ò~
    ´N¬O§A¦b[Stock on hand] ¦³¤@­Ó¶µ¥Ø99 ¦b [Summary] ¬O¨S¦³ªº
    ¦]¬°¤£ª¾¹D§A¾ã­Ó¾Þ§@ªºÅÞ¿è~ ©Ò¥H~ ¥ý§¹¦¨°w¹ï±N¸ê®Æ©ßÂà~
    ¦A¨Ó¤@¨B¤@¨Bªº¨Ó½Õ¾ã~ §A©Ò»Ý­nªº~
      record-TEST.rar (81.28 KB)
¾Ç²ß¤~¯à´£¤É¦Û¤v

TOP

Hugh0620, ¯u¬O«Ü·P¿E§AªºÀ°¦£, ·P¿E·P¿E, §Ú¥H¬°ÉN¤H²z§Ú, §Ú¤w¸g¦Û¤v¥Î¤@­Ó«Ü¤jªºµ{§Ç¥h§¹¦¨, ¤£¹L§Ú·|¸Õ¥Î§AÀ°¦£½s¼gªºªþÀÉ¡A¥Ñ©ó§ÚÅv­­°ÝÃD, ²{¦b¤´¥¼¦³¸ê®æ¶}±ÒÀ£ÁYÀÉ...¿ð¨Ç§Ú·|¦A¹Á¸Õ, ¦A¦¸·P¿E§A°Ú...

TOP

¦^´_ 13# waterfox

  ³o¬O§Ú¤W¸üÀɮפ¤ªºµ{¦¡½X~
  1. Private Sub CommandButton1_Click()   '¸ê®Æ©ßÂà
  2. '========  A =>¨C¤@¦C¶]ªº¦¸¼Æ  ====================
  3. A = Sheet4.Range("IV2").End(xlToLeft).Column
  4. A = (A - 4) / 3
  5. If A - Int(A) > 0 Then
  6.    MsgBox "¸ê®ÆÄæ¦ì¦³»~"
  7.    Exit Sub
  8. End If
  9. A = A - 1
  10. '========  B => Á`¦@­n¶]ªºµ§¼Æ  ====================
  11. B = Sheet4.Range("A65536").End(xlUp).Row

  12. For I = 3 To B
  13.     Set C = Sheet2.Columns("B:B").Find(Sheet4.Range("B" & I))
  14.    
  15.     If Not C Is Nothing Then
  16.     C = Sheet2.Columns("B:B").Find(Sheet4.Range("B" & I)).Row

  17.     For J = 0 To A    '(EX. 0->11 =12¦¸)
  18.         D = Sheet4.Cells(I, 7 + J * 3)
  19.         If D = "" Then
  20.         Else
  21.         Do Until Sheet2.Range("F" & C + K) = ""
  22.            If Sheet2.Range("F" & C + K) = D Then
  23.               If Sheet4.Cells(I, 5 + J * 3) > 0 Then
  24.               Sheet2.Cells(C + K, 7 + J) = Sheet4.Cells(I, 5 + J * 3)
  25.               End If
  26.               If Sheet4.Cells(I, 6 + J * 3) > 0 Then
  27.               Sheet2.Cells(C + K, 21 + J) = Sheet4.Cells(I, 6 + J * 3)
  28.               End If
  29.               P = 1
  30.               Exit Do
  31.            End If
  32.            K = K + 1
  33.         Loop
  34.         If P = 0 Then
  35.            Sheet2.Rows(C + K).Insert Shift:=xlDown
  36.            Sheet2.Range("F" & C + K) = Sheet4.Cells(I, 7 + J * 3)
  37.            If Sheet4.Cells(I, 5 + J * 3) > 0 Then
  38.             Sheet2.Cells(C + K, 7 + J) = Sheet4.Cells(I, 5 + J * 3)
  39.            End If
  40.            If Sheet4.Cells(I, 6 + J * 3) > 0 Then
  41.             Sheet2.Cells(C + K, 21 + J) = Sheet4.Cells(I, 6 + J * 3)
  42.            End If
  43.         End If
  44.         End If
  45.     K = 0
  46.     P = 0
  47.     Next
  48.     End If
  49. Next

  50. End Sub
½Æ»s¥N½X
¾Ç²ß¤~¯à´£¤É¦Û¤v

TOP

        ÀR«ä¦Û¦b : §ïÅܦۤv¬O¦Û±Ï¡A¼vÅT§O¤H¬O±Ï¤H¡C
ªð¦^¦Cªí ¤W¤@¥DÃD