|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
- Sub 按钮1_Click()
- hs = Range("d" & Rows.Count).End(xlUp).Row
-
- If hs < 11 Then
- MsgBox "无数据"
- Exit Sub
- ElseIf hs = 11 Then
- hs = 10 '防止单行数据时,arr为非数组
- End If
-
- arr = Range("i11:i" & hs).Value
- For i = 1 To UBound(arr)
- If arr(i, 1) = "" Then
- m = m + 1
- n = n & "," & i
- End If
- Next
- If m >= 1 Then
- MsgBox "共有" & m & "行不正确请检查不正确的序号,错误行号为:" & n, 16, "☆☆☆☆☆☆包装检查☆☆☆☆☆☆"
- Else
- ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:="pdfFactory Pro"
- ThisWorkbook.Close False
- End If
- End Sub
复制代码 |
评分
-
1
查看全部评分
-
|