If Selection Is Nothing Then
MsgBox "lease select the cells which need to print...", vbInformation
Else
If Selection.Count = 1 Then
If MsgBox("You have selected a single cell, continue to print?", vbQuestion + vbYesNo) = vbYes Then
Selection.PrintOut
End If
Else
Selection.PrintOut
End If
End If
End Sub作者: qqqqqqwwwwww 时间: 2006-12-22 06:01
可以设置一个字符串来代替下面的a1到g19