View Single Post
 
Old 04-02-2015, 08:53 AM
MaheshBabu MaheshBabu is offline Windows 8 Office 2003
Novice
 
Join Date: Apr 2015
Posts: 1
MaheshBabu is on a distinguished road
Default Convert word to pdf

Hi,

I want a macro for the below requirements :

1. Convert the current page of word document into pdf

2. Should take me by default to Desktop

3. Should allow me to give a file name

***

I have the below code, however i have the below challenges:

a. entire word document is getting convert instead of current page
b. by default taking me to My documents folder on my system

Sub PDF()
With Dialogs(wdDialogFileSaveAs)
.Name = "Draft_[Topic]_[Date]"
.Format = wdFormatPDF
.Show
End With
End Sub


Can some help me in editing the above code or give me a new code with above requirements

Thanks in advance....
Reply With Quote