VB code to goto open PDF doc and print it out

redspanna

Well-known Member
Joined
Jul 27, 2005
Messages
1,476
Office Version
  1. 2016
Platform
  1. Windows
Hi all,

A simple task required, but no clue how to get VB to run it.
I've tried to simply record a macro but it won't select the PDF document.

Anyway - my task...

I have an open PDF documnet called "TEST DATA"
I simply want some VB code that will to goto this open PDF document and print pages 2 and 3
then return back to an Excel workbook called "OPEN DATA"

SIMPLE (If you know how ;)

thanks in advance
 

Some videos you may like

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

jmazorra

Well-known Member
Joined
Mar 19, 2011
Messages
707
Hello redspanna:

Are you trying to open the TEST DATA pdf from your excel workbook?
 

redspanna

Well-known Member
Joined
Jul 27, 2005
Messages
1,476
Office Version
  1. 2016
Platform
  1. Windows
Hi,

No the pdf document is already open on the desktop, I simply want a button on my open excel sheet that will goto the pdg doc and print pages 2 and 3 of it and then return back to the excel workbook
thanks and appreciate any help
 

Watch MrExcel Video

Forum statistics

Threads
1,122,971
Messages
5,599,110
Members
414,289
Latest member
sonintebil

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top