![根据工作簿中的单元格内容进行打印](https://linux22.com/image/1503576/%E6%A0%B9%E6%8D%AE%E5%B7%A5%E4%BD%9C%E7%B0%BF%E4%B8%AD%E7%9A%84%E5%8D%95%E5%85%83%E6%A0%BC%E5%86%85%E5%AE%B9%E8%BF%9B%E8%A1%8C%E6%89%93%E5%8D%B0.png)
答案1
首先修复错误 - 然后描述不应该发生的事情
With Worksheets(q)
If Range("J35").Value > 0 Then
.Worksheets.PrintOut from:=1, to:=1 'Prints page 1 when there is no data.
' **Replace This**
'Else
' ** With This**
End If
End With
首先修复错误 - 然后描述不应该发生的事情
With Worksheets(q)
If Range("J35").Value > 0 Then
.Worksheets.PrintOut from:=1, to:=1 'Prints page 1 when there is no data.
' **Replace This**
'Else
' ** With This**
End If
End With