
Sub STAMPA()
With Sheets("Foglio1")
If [a1] = 1 Then
Foglio2.PrintOut from:=1, to:=1
End If
If [b1] = 1 Then
Foglio2.PrintOut from:=2, to:=2
End If
End With
End Sub
|
If Range("a1") = 1 And Range("b1") = 1 Then
Sheets(1).PrintOut
Sheets(2).PrintOut
ElseIf Range("a1") = 1 And Range("b1") <> 1 Then
Sheets(1).PrintOut
Sheets(2).PrintOut from:=1, to:=1
ElseIf Range("a1") <> 1 And Range("b1") = 1 Then
Sheets(1).PrintOut
Sheets(2).PrintOut from:=2, to:=2
End If |
Sub STAMPA()
With Sheets("Foglio1")
Foglio1.PrintOut
If [a1] = 1 Then
Foglio2.PrintOut from:=1, to:=1
End If
If [b1] = 1 Then
Foglio2.PrintOut from:=2, to:=2
End If
End With |
Sub STAMPA()
With Foglio1
.PrintOut
If .Range("a1") = 1 Then
Foglio2.PrintOut from:=1, to:=1
End If
If .Range("b1") = 1 Then
Foglio2.PrintOut from:=2, to:=2
End If
End With
End Sub
|
