- ©«¤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 08:44 ½s¿è
¦^´_ 12# starry1314
µ{§Çקï¦p¤U- Sub ¶K¤W¸ê®Æ¦Ü_·~°ÈºÞ²zTEST¦Û°Ê©¹¤U¶K¤@¦æ()
- '
- ' ¶K¤W¸ê®Æ¦Ü_·~°ÈºÞ²z ¥¨¶°
- '
- '
-
-
- Range("A3:P3").Copy
- Workbooks.Open ("½Æ»sªº¸ô®|" & "\" & "«È¤á©ú²Ó-·~°È±M¥Î.xlsm")
- Windows("«È¤á©ú²Ó-·~°È±M¥Î.xlsm").Activate
- EndRow = Windows("«È¤á©ú²Ó-·~°È±M¥Î.xlsm").Sheets("¤¤ë").Range("B4", Cells(Rows.Count, "B").End(xlUp).Address).Row + 1 '©Ò¦³¨Ï¥Î¤¤ªº¦C¼Æ+1
- Windows("«È¤á©ú²Ó-·~°È±M¥Î.xlsm").Sheets("¤¤ë").Cells(EndRow, "B").PasteSpecial Paste:=xlPasteValues '¥Ø«e¨Ï¥Î¤¤ªº¤À¶,ªº³Ì¤U¤èªÅ¥Õ¦C¶K¤WÈ
- ActiveSheet.Paste Link:=True
- Windows("«È¤á©ú²Ó-·~°È±M¥Î.xlsm").Activate
- ActiveSheet.Hyperlinks.Add Anchor:=Cells(EndRow, "B"), Address:="½Æ»sªº¸ô®|" & "\" & ThisWorkbook.Name
- Workbooks("«È¤á©ú²Ó-·~°È±M¥Î.xlsm").Close True
- End Sub
½Æ»s¥N½X ¨ä¤¤ªºSheets("¤¤ë")¡A§A¥i¥H¥ÎÅܼƨÓÅý¥¦Åܦ¨°ÊºAªº¡A©Î¬OÅý¨Ï¥ÎªÌ¦Û¤v¿ï¾Ü¡A¤]©Î¬O¨Ì·Ó¤é´Á¨Ó¿ï¾Ü¡A¤èªk¦³«Ü¦h¡A
ÁÙ¦³ActiveSheet¤]¥i¥H¥ÎSheets("¤¤ë")ªºÅܼƨú¥N¤§
³s Range("A3:P3").Copy³oÓ¤]¥i¥HÅý¥¦¦¨¬°ÅܼÆ
¦bµ{¦¡¤¤°£«D¥²n¡A§_«hºÉ¶q¤£n¥Î.Select©Î.Activate¡A¦]¬°³o¼Ë²£¥Íªºbug¤]·|«Ü¦hªº¡A¦Ó¥B°Ê§@¤]·|ÅܺC¡I |
|