VB code to goto open PDF doc and print it out

redspanna

Well-known Member
Joined
Jul 27, 2005
Messages
1,575
Office Version
  1. 365
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
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

jmazorra

Well-known Member
Joined
Mar 19, 2011
Messages
711
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,575
Office Version
  1. 365
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,626
Messages
5,838,431
Members
430,547
Latest member
jopshio

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