- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 1# eg0802
¸Õ¸Õ¬Ý- Option Explicit
- Sub EX()
- Dim Sh As Worksheet, Ar(), i As Integer, ii As Integer, A(3)
- ReDim Preserve Ar(i)
- Ar(i) = Array("«~¶µ", "TOTAL MATERIALS COST", "TOTAL TRIM COST", "CMP") 'n¾ã²zªº¶µ¥Ø
- For Each Sh In ThisWorkbook.Sheets 'ª«¥ó: ³o¬¡¶Ã¯¤¤¤u§@ªíªº¶°¦X
- If Sh.Name <> "Á`ªí" Then
- With Sh
- A(0) = Sh.Name '«ü©w¤¸¯ÀªºÈ
- For ii = 1 To 3
- 'A(ii) = .Cells.Find(Ar(0)(ii), LookAt:=xlWhole).Row
- '*** ¥¿±`n xlWhole(¦r¦ê§¹¥þ¬Ûµ¥) -> ¤~·|§ä¨ì¥¿½TªºÀx¦s®æ ****
- '****³o¸Ì¥N¤JxlParte(³¡¤À¦r¦ê¬Ûµ¥) ,¦]¤u§@¤¤ªº"CMP" ¬° " CMP " ****
- A(ii) = .Cells.Find(Ar(0)(ii), LookAt:=xlPart).Row '§ä¨ì¦r¦êªº¦C¸¹
- A(ii) = .Range("G" & A(ii)) '«ü©w¤¸¯ÀªºÈ: Gøó&¦r¦êªº¦C¸¹
- Next
- i = i + 1
- ReDim Preserve Ar(i) '«·s°t¸m°}¦C¤¸¯Àªººû¼Æ(Preserve «O¯d¦³ªº¤¸¯À)
- Ar(i) = A
- End With
- End If
- Next
- With Sheets("Á`ªí")
- .Activate
- .Cells.Clear
- .[A1].Resize(i + 1, UBound(A) + 1) = Application.Transpose(Application.Transpose(Ar))
- End With
- End Sub
½Æ»s¥N½X |
|