View Single Post
 
Old 02-20-2019, 01:24 PM
g_stuckey g_stuckey is offline Windows 10 Office 2016
Novice
 
Join Date: Feb 2019
Location: Alabama, USA
Posts: 2
g_stuckey is on a distinguished road
Default Print or export a single section to PDF

Hi All,

I'm Ginger, a technical writer using Word 2016/365. I'm just learning VBA but I have an urgent request from my customer to print, save, or export a specific section to PDF on a button click. I'm not there yet.

I've done some research and found pieces of information that I only understand partially (because, seriously, I'm just starting out) so I know it can be done. I just need some help.

I found the following but it is for Word 2003. I tried it but it didn't work:

With Dialogs(wdDialogFilePrint)
.Background = True
.Pages = "s1"
.Execute
End With

I understand that it doesn't solve the straight to PDF issue but users can choose PDF.

Ideally, users can click a button above the section break to convert to PDF and open the Save dialog box.

Sorry to be a pain as a noob.

Ginger
Reply With Quote