Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Word > Word VBA

LinkBack Thread Tools Display Modes
Old 02-21-2019, 05:03 PM
chubbychub chubbychub is offline Windows 10 Office 2013
Join Date: Feb 2019
Posts: 5
chubbychub is on a distinguished road
Default print specific pages in vba

I have the below code that will not print the command button, but I only want certain pages printed, for example I just want pages 1 and 3.
With ActiveDocument 
.Shapes(1).Visible = msoFalse 
.PrintOut Background:=False 
.Shapes(1).Visible = msoTrue 
End With
please help, thanks in advance.
Reply With Quote
Old 02-21-2019, 05:54 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 1,150
Guessed has a spectacular aura aboutGuessed has a spectacular aura aboutGuessed has a spectacular aura about

PrintOut has a large number of parameters which it appears you haven't explored. Have a look at
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote

Thread Tools
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing selected pages based on a MERGEFIELD.g. If MERGEFIELD=x then print pages 1,2,4 if MERGEFIEL Richard.p Word 3 04-21-2015 01:14 AM
can word: make variables, find appropriate pages, fill out pages with variables, print only those 20GT Word VBA 1 10-15-2014 09:48 PM
Tick box to be able to save or print specific pages Jack Byrindi Word 9 01-21-2014 09:36 PM
Select specific pages to print or save Jack Byrindi Word VBA 0 01-16-2014 03:14 PM
Print attachment when it arrive in specific folder with specific subject visha_1984 Outlook 1 01-30-2013 10:42 AM

All times are GMT -7. The time now is 05:38 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc. is not affiliated with Microsoft