
Call CreaPDF
With ActiveSheet.PageSetup
.PrintTitleRows = "$1:$6"
.PrintTitleColumns = "$A:$F"
.Zoom = 30
.Orientation = xlLandscape
End With
ChDir "C:UsersJellyfishDocumentsProgetto"
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:UsersJellyfishDocumentsProgettoNumeProgetto.pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
End Sub |
percorso = ActiveWorkbook.Path
nomefile = "NomeProgetto.pdf"
ActiveSheet.ExportAsFixedFormat _
Type:=xlTypePDF, _
Filename:=percorso & "" & nomefile
|
n = left(thisworkbook.Name, instrrev(thisworkbook.Name, ".")-1) & "_" & format(now, "yyyymmdd_hhmmss") |
