- ©«¤l
- 354
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 387
- ÂI¦W
- 0
- §@·~¨t²Î
- windows7
- ³nÅ骩¥»
- vba,vb,excel2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2017-1-8
- ³Ì«áµn¿ý
- 2024-8-2
|
¦^´_ 1# mrcv3
Sub test()
Set s = Sheets("ID")
r = s.Cells(s.Rows.Count, "B").End(3).Row - 1
ar = s.Cells(2, 1).Resize(r, 2)
For Each Z In Sheets
If Z.Name Like "*Leg*" Then
Zr = Z.Cells(Rows.Count, "B").End(3).Row
For i = 2 To Zr
Z.Cells(i, 3) = ar(Z.Cells(i, 2), 2)
Next
End If
Next
End Sub |
|