
Originariamente inviata da
16fra
opsss
leggendo meglio la macro da cui avevo preso spunto (
http://forum.html.it/forum/showthread/t-1498399.html)mi sono accorto dei grossolani errori commessi... :-(
Sub salva_file_prova()
'
' salva_file_prova
'
'
ActiveDocument.ExportAsFixedFormat OutputFileName:=ActiveDocument.Path & "\" & TxtNome.Text & " .pdf", ExportFormat:=wdExportFormatPDF, OpenAfterExport:=True, OptimizeFor:= _
wdExportOptimizeForPrint, Range:=wdExportAllDocument, From:=1, To:=1, _
Item:=wdExportDocumentContent, IncludeDocProps:=True, KeepIRM:=True, _
CreateBookmarks:=wdExportCreateNoBookmarks, DocStructureTags:=True, _
BitmapMissingFonts:=True, UseISO19005_1:=False
ActiveDocument.Save
End Sub
... nonostante la correzione non funziona :-(
le istruzioni, ActiveDocument.Path, TxtNome.Text, possono essere utilizzate direttamente
Grazie