- ©«¤l
- 552
- ¥DÃD
- 3
- ºëµØ
- 0
- ¿n¤À
- 578
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-2-8
- ³Ì«áµn¿ý
- 2024-7-9
|
¥»©«³Ì«á¥Ñ lpk187 ©ó 2015-5-6 09:30 ½s¿è
¦^´_ 20# starry1314 - Sub ¶K¤W¸ê®Æ¦Ü_·~°ÈºÞ²zTEST¦Û°Ê©¹¤U¶K¤@¦æ()
- '
- ' ¶K¤W¸ê®Æ¦Ü_·~°ÈºÞ²z ¥¨¶°
- 'Range("A3:P3").Copy
- sht = ActiveSheet.Name
- arr = Range("A3:P3")
- ¥»Àɮתº¸ô®| = ThisWorkbook.Path & "\"
- ¥»ÀɮתºÀɦW = ThisWorkbook.Name
-
- Workbooks.Open ("½Æ»sªº¸ô®|" & "\" & "«È¤á©ú²Ó-·~°È±M¥Î.xlsm") '³o¸Ìªº"½Æ»sªº¸ô®|"¬On¥i¥H¶}"«È¤á©ú²Ó-·~°È±M¥Î.xlsm"ªº¸ô®|
- Windows("«È¤á©ú²Ó-·~°È±M¥Î.xlsm").Activate
- AA = Workbooks("«È¤á©ú²Ó-·~°È±M¥Î.xlsm").Sheets("¤¤ë").Cells(Rows.Count, "B").End(xlUp).Address
- EndRow = Workbooks("«È¤á©ú²Ó-·~°È±M¥Î.xlsm").Sheets("¤¤ë").Cells(Rows.Count, "B").End(xlUp).Row + 1 '©Ò¦³¨Ï¥Î¤¤ªº¦C¼Æ+1
- 'Cells(EndRow, "B").PasteSpecial Paste:=xlPasteValues '쥻ªºµ{§Ç
- Cells(EndRow, "B").Resize(1, UBound(arr, 2)) = Application.Transpose(Application.Transpose(arr)) '¥Ø«e¨Ï¥Î¤¤ªº¤À¶,ªº³Ì¤U¤èªÅ¥Õ¦C¶K¤WÈ
- 'ActiveSheet.Paste Link:=True
- Windows("«È¤á©ú²Ó-·~°È±M¥Î.xlsm").Activate
- 'ActiveSheet.Hyperlinks.Add Anchor:=Cells(EndRow, "B"), Address:=ThisWorkbook.Name, SubAddress:=sht'쥻ªºµ{§Ç
- Windows("«È¤á©ú²Ó-·~°È±M¥Î.xlsm").Hyperlinks.Add Anchor:=Cells(EndRow, "B"), Address:=¥»Àɮתº¸ô®| & ThisWorkbook.Name, SubAddress:=shtÅܧó«áªº '³o¸Ìªº¥»Àɮתº¸ô®|«h¬O³oÓÀɮשҦbªº¸ô®|
- Workbooks("«È¤á©ú²Ó-·~°È±M¥Î.xlsm").Close True
- End Sub
½Æ»s¥N½X ¤W±¬O§Ú¦³×§ïªºµ{§Ç¡A¨ä¤¤¦³¸ÑÄÀ¸ô®| |
|