- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 1# hong912
¸Õ¸Õ¬Ý- Option Explicit
- Sub Ex()
- Dim Rng As Range, AR(), R
- With Workbooks("¥X³f³æ.xlsx").Sheets(1)
- Set Rng = .Columns("D:D").Find("¥¿½TµL»~", LookAT:=xlWhole)
- If Not Rng Is Nothing Then
- AR = .Range("C15:g" & Rng.Row - 1).Value
- Else
- MsgBox "¨S¦³ ¥¿½TµL»~"
- Exit Sub
- End If
- End With
- With Workbooks("¦sÀÉ.xlsx").Sheets(1)
- With .Range("c" & .Rows.Count).End(xlUp).Offset(1)
- .Resize(UBound(AR), UBound(AR, 2)) = AR
- With .Offset(, -2).Resize(UBound(AR))
- .Cells = "=month(Today())"
- .Value = .Value
- End With
- With .Offset(, -1).Resize(UBound(AR))
- .Cells = "=today()"
- .Value = .Value
- End With
- End With
- End With
- End Sub
½Æ»s¥N½X |
|