- ©«¤l
- 913
- ¥DÃD
- 150
- ºëµØ
- 0
- ¿n¤À
- 1089
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2011-8-28
- ³Ì«áµn¿ý
- 2023-7-19
|
¦^´_ 2# jcchiang
Dear jcchiang,
¦³³]¸ô®|ªº"®w¦sªí"¬O¨Ó·½ÀÉ
xRow = Cells(Cells.Rows.Count, "B").End(xlUp).Row
Set Rng = Range("S5:S" & xRow)
"S5:S"¦³¦X¨ÖÀx¦s®æ, ¤@ª½µLªk¶K¨ì¥ØªºÀÉ ³Ì·s®w¦s-¨Î«~
Workbooks("³Ì·s®w¦s-¨Î«~.xlsx").Sheets("¨Î«~")¦]¬°¤u§@®É,¤@ª½³£¬O¶}±Òªº,©Ò¥H¨S¦³³]¸m¸ô®|,©Ò¥H¤£»ÝnOpen(Path & ...
§ï¬°¥H¤UÁÙ¬OµLªk¶K...
Workbooks.Open(Path & "³Ì·s®w¦s-¨Î«~.xlsx").Sheets("¨Î«~").Activate
Range("AM6:AM" & (xRow + 1)).PasteSpecial xlPasteValues '¿ï¾Ü©Ê¶K¤WÈ
¨ä¹ê§Ú¦b¨Ï¥Îcopyªº¥\¯à,¤@¯ë³£¥u¶K¤WÈ,©Ò¥H§Ú³Ì·Qnªº¼gªk¬OxRng = Rng.Values
¤£¹L´N¬O¤£¯à¶K¤W,»ª¦ü¤£¯à³o»ò¼g,§Ú·Qª¾¹DÁÙ¦³¤°»ò²¼äªº¼gªk¶Ü?
¥Ø«e§Ú¥ý¼È¥Î¼g¦ºªº¤èªk,¤£µMµLªk¹B§@,¦ý¤S¤£³ßÅw³oÓ¦º¤èªk,Àx¦s®æ¤@¦ýÅÜ°Ê,«D±onקï,¤£µM¸ê®Æ´N¿ù¤F¡I
Workbooks("³Ì·s®w¦s-¨Î«~.xlsx").Sheets("¨Î«~").Range("AM6:AM20") = Rng.Value
With Workbooks.Open(Path & File)
Set W = Workbooks.Open(Path & File)
With W.Sheets(i)
W.Sheets(i).Activate
xRow = Cells(Cells.Rows.Count, "B").End(xlUp).Row
Set Rng = Range("S5:S" & xRow)
End With
Workbooks("³Ì·s®w¦s-¨Î«~.xlsx").Sheets("¨Î«~").Activate
Set xRng = Range("AM6:AM" & xRow)
xRng = Rng.Values |
|