It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

VBA MsWord SaveAs .PDF

Moderator: dafunkymunky

VBA MsWord SaveAs .PDF

Postby mel123 on Thu Mar 10, 2011 8:37 am

HI there

I have inserted a simple command button into my Word Template - with the following code:


Private Sub CommandButton1_Click()
Me.SaveAs ("C:\MyFolder\testdoc.pdf")
End Sub

This code works when filetype is.rtf, or .doc. but When it saves to PDF, and i try open the PDF Document, it says file is in use or is corrupt?

Thank you
mel123
 
Posts: 3
Joined: Fri Feb 11, 2011 9:12 am

Who is online

Users browsing this forum: No registered users and 4 guests