Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 08-25-2020, 12:16 AM
gmayor's Avatar
gmayor gmayor is offline Change page size for hundreds of documents Windows 10 Change page size for hundreds of documents Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

The following should fix it. I will investigate the error log issue.

Code:
Sub Resize(oDoc As Document)
Dim lngOrient As Long
    lngOrient = oDoc.PageSetup.Orientation
    If oDoc.PageSetup.PaperSize = wdPaperLetter Then
        oDoc.PageSetup.PaperSize = wdPaperA4
        oDoc.PageSetup.Orientation = lngOrient
    End If
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change page size for hundreds of documents change printer settings - page size not paper size trevorc Excel Programming 4 07-20-2020 05:10 PM
Change page size for hundreds of documents Change Page size dita Word VBA 4 05-19-2020 07:04 PM
Change page size for hundreds of documents Hundreds of letters - print only the lead page on letterhead RookA1 Mail Merge 7 02-13-2018 11:08 AM
Change page size reducing both margins WizardDani Word 1 01-04-2018 06:41 AM
Change page size for hundreds of documents Change font style and size in multiple documents fitkhan Word 1 04-27-2011 09:49 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:01 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