UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome to UtterAccess! Please ( Login   or   Register )

Custom Search
 
   Reply to this topicStart new topic
> Printing Specific Pages, Office 2013    
 
   
azizrasul
post May 22 2018, 12:10 PM
Post#1



Posts: 1,463
Joined: 18-July 00
From: Faisalabad, Pakistan


Does anyone have any VBA code that will print specific number of pages to pdf printer. I have tried the following to print page 1 only.

CODE
Application.PrintOut Range:=wdPrintFromTo, From:="1", To:="1"
Go to the top of the page
 
June7
post May 22 2018, 03:57 PM
Post#2



Posts: 649
Joined: 25-January 16



Don't really understand requirement. The From and To argument parameters can be provided by a variable.

What pages do you want to print?


This post has been edited by June7: May 22 2018, 03:58 PM
Go to the top of the page
 
azizrasul
post May 23 2018, 03:16 AM
Post#3



Posts: 1,463
Joined: 18-July 00
From: Faisalabad, Pakistan


The pdf file that I want to append to another pdf file contains 4 pages. I want to append only the first page.
Go to the top of the page
 
June7
post Mar 16 2019, 07:47 PM
Post#4



Posts: 649
Joined: 25-January 16



Don't put the page numbers in quote marks.

Can't append to another PDF with PrintOut method. That requires Adobe automation code in VBA manipulating Acrobat objects.

--------------------
Attachments Manager is below the edit post window. To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
DEBUG! DEBUG! DEBUG! http://www.cpearson.com/Excel/DebuggingVBA.aspx
Go to the top of the page
 


Custom Search


RSSSearch   Top   Lo-Fi    18th July 2019 - 12:23 PM