- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 248
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-16
|
¦^´_ 1# jesscc - Sub ContainerDetails()
- Set swb = ThisWorkbook
- mypath = "C:\Documents and Settings\Administrator\®à±\"
- myfile = Format(Date, "emmdd") & "¤w¥X³f.xlsx"
- swb.Sheets(Array("AA", "BB", "CC")).Copy
- Set wb = ActiveWorkbook
- wb.Sheets("AA").Shapes.Range(Array("CommandButton6")).Delete
- wb.Sheets("AA").Range("B7:J500").ClearContents
- wb.Sheets("BB").Range("B7:J500").ClearContents
- wb.Sheets("CC").Range("B7:J500").ClearContents
-
- For Each Sh In swb.Sheets(Array("AA", "BB", "CC"))
- Dim Ay()
- With Sh
- For i = 7 To .Cells(.Rows.Count, 2).End(xlUp).Row
- If .Range("B" & i) = "v" Or .Range("B" & i) = "*" Then
- ReDim Preserve Ay(s)
- Ay(s) = .Range("B" & i).Resize(, 10).Value
- s = s + 1
- End If
- Next
- wb.Sheets(.Name).[B7].Resize(s, 10) = Application.Transpose(Application.Transpose(Ay))
- Erase Ay
- s = 0
- End With
- Next
- wb.SaveAs mypath & myfile
- End Sub
½Æ»s¥N½X |
|