圖一
Private Sub Workbook_BeforePrint(Cancel As Boolean)
If Sheet14.Range("E973") = True Then
MsgBox "板厚檢核公式-客戶結構所有厚度加總欄位未填無法列印.(陳榮輝)(管制不可列表),不可列印!"
Cancel = True
End If
End Sub作者: 准提部林 時間: 2020-4-2 10:35
Private Sub Workbook_BeforePrint(Cancel As Boolean)
IF ACTIVESHEET.NAME="Sheet1" then
If Range("E973") = True Then
MsgBox "板厚檢核公式-客戶結構所有厚度加總欄位未填無法列印.(陳榮輝)(管制不可列表),不可列印!"
Cancel = True
End If
END IF
End Sub