Sub Test() Dim opt As New StructExportOptions Dim flt As ExportFilter opt.Overwrite = False Set flt = ActiveDocument.ExportEx("C:\Temp\img.gif", cdrGIF, cdrCurrentPage, opt) flt.FinishEnd Sub