If Foglio1.Range("bd1").Value = 1 Then
Dim Osh As Worksheet
Set Osh = Sheets("output")
Osh.Range("a1", "bb49").Copy
Workbooks.Add
With Range("a1")
.PasteSpecial xlPasteAll 'incolla tutto ma non rispetta la larghezza di origine delle colonne
.PasteSpecial xlPasteValuesAndNumberFormats 'incolla solo i valori e sovrascrive le formule
End With
Columns("A:bb").Select
Selection.ColumnWidth = 2
' Se gli vuoi appiccicare il logo devi inserire solo queste due righe
Osh.Shapes.Item("Immagine 1").Copy
ActiveSheet.Range("a2").PasteSpecial xlPasteAll
End If |