Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 10-10-2021, 05:03 AM
smj.javid smj.javid is offline Save a range of pages as PDF/New Word file with SaveAs Dialog box popup Windows 10 Save a range of pages as PDF/New Word file with SaveAs Dialog box popup Office 2019
Novice
Save a range of pages as PDF/New Word file with SaveAs Dialog box popup
 
Join Date: Oct 2021
Posts: 3
smj.javid is on a distinguished road
Default

Thanks for your response gmayor...

I intended to convert part of word document file (Specified Page Range) in PDF Format. And I succeeded using below mentioned code.

Sub SavePageRangeasPDF()
'
' SavePageRangeasPDF Macro
'
ActiveDocument.ExportAsFixedFormat _
OutputFileName:=CurrentFolder & "Hello All" & ".pdf", _
ExportFormat:=wdExportFormatPDF, _
Range:=wdExportFromTo, From:=2, To:=11

End Sub

In this similar way I want to save a duplicate copy of a word file (Specified Page Range) in docx format with SaveAs Dialogue box pop up to change the file name.

Please help me in generating a code for this
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Save pages range as PDF by input box RobertDany Word VBA 4 08-14-2021 01:25 AM
Save a range of pages as PDF/New Word file with SaveAs Dialog box popup save dialog box promt doesn't save file brmveen Word VBA 2 11-04-2015 12:51 AM
Save a range of pages as PDF/New Word file with SaveAs Dialog box popup Save a range of pages as PDF gn4619 Word VBA 9 10-27-2015 02:11 PM
Save a range of pages as PDF/New Word file with SaveAs Dialog box popup How to suppress saveas dialog from VB6 steveneashcraft Word VBA 15 05-09-2014 07:01 AM
Save a range of pages as PDF/New Word file with SaveAs Dialog box popup How to deactivate File Save dialog box KIM SOLIS Word 3 12-15-2013 12:30 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:31 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft