- ©«¤l
- 471
- ¥DÃD
- 121
- ºëµØ
- 0
- ¿n¤À
- 579
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN10
- ³nÅ骩¥»
- OFFICE2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-4-16
- ³Ì«áµn¿ý
- 2023-1-17
|
¤w¥[¤J ¦ý·|¸õ¥X °õ¦æµ{»Ý©Î©I¥s¿ù»~
- Sub ¶K¤W¸ê®Æ¦Ü_«ÈªAºÞ²z_¦Û°Ê§PÂ_()
- '
- ' ¶K¤W¸ê®Æ¦Ü_«ÈªAºÞ²z ¥¨¶°
- Dim lSourceRow As Long, lTargetRow As Long
- Dim wsTarget As Worksheet
- Dim sPath$
- sPath = ThisWorkbook.Path
- ChDrive sPath
- ChDir sPath
- With ActiveSheet
- lSourceRow = .Buttons(Application.Caller).TopLeftCell.Row '³QÂIÀ»ªº¸Ó«ö¶s¦æ¼Æ
- If .Cells(lSourceRow, "C").Text = vbNullString Then MsgBox "¤é´ÁÄæµL¸ê®Æ¡AµLªk§PÂ_¶K¤W¤ë¥÷": Exit Sub
- Set wsTarget = Workbooks("«È¤á©ú²Ó-«ÈªA±M¥Î.xlsm").Sheets(GetMonthStr(.Cells(lSourceRow, "C"))) '¤é´Á§PÂ_n¶K¤Wªº¤u§@ªí
- lTargetRow = wsTarget.Cells(Rows.Count, "B").End(xlUp).Row + 1 'n¶K¤Wªº¦ì¸m
- Application.ScreenUpdating = False
- .Range(.Cells(lSourceRow, "A"), .Cells(lSourceRow, "AF")).Copy '½Æ»sAÄæ¨ìPÄæªº¸ê®Æ
- wsTarget.Cells(lTargetRow, "B").PasteSpecial Paste:=xlPasteValues '¦bBÄæ¶}©l¶K¤W
- wsTarget.Paste Link:=True '¶K¤W³sµ²
- Application.ScreenUpdating = True '¶K¤W³sµ²
- End With
-
- With wsTarget
- .Hyperlinks.Add Anchor:=.Cells(lTargetRow, "A"), _
- Address:=ThisWorkbook.FullName, _
- SubAddress:=ThisWorkbook.ActiveSheet.Name & "!" & Rows(lSourceRow).Address, _
- TextToDisplay:=.Cells(lTargetRow, "a").Text
- End With
- End Sub
½Æ»s¥N½X ¦^´_ 2# luhpro |
|