|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
- Private Sub CommandButton1_Click()
- Dim a, b As Range
- Range(Cells(1000, 1), Cells(1000, 13)).Copy Sheets(1).[A1]
- Set a = Sheets(1).Range("A:A").Find([B998].Value, lookat:=xlWhole, searchdirection:=xlNext)
- Set b = Range("A1001:A65536").Find([B998].Value, lookat:=xlWhole, searchdirection:=xlNext)
- If a Is Nothing Then
- Range(Cells(b.Row, 1), Cells(b.Row, 13)).Copy Sheets(1).Range("A" & Sheets(1).[A65536].End(3).Row + 1)
- End If
- End Sub
复制代码 |
|