Hello
I am using ExportAsFixedFormat to export .doc as pdf from vb excel, but i have unexpected error 80004005 when the .doc has tables inside, please your help.
Below is the code I am using.
Dim wrdApp As Word.Application
Dim wrdDoc As Word.Document
Set wrdApp = CreateObject("Word.Application")
wrdApp.Visible = True
archivo = ThisWorkbook.Path & "\Pruebas.doc"
Set wrdDoc = wrdApp.Documents.Open(archivo)
archivoexportado = ThisWorkbook.Path & "\Pruebas.pdf"
wrdDoc.ExportAsFixedFormat OutputFileName:=archivoexportado, ExportFormat:=wdExportFormatPDF
wrdApp.Quit
Set wrdApp = Nothing[/SIZE]
Bookmarks