Bundle a PDF document in Excel

Ignition1

New Member
Joined
Feb 22, 2011
Messages
49
Hi

Not sure if this is possible.

I have a spreadsheet which requires a few criteria to be met before the user can run the macro.

Ideally I'd like to have screen shots of what I want done loaded in a PDF along with text - when the user clicks on the "Instructions" button in my spreadsheet - this PDF will open.

The only way I know how is to simply have the filepath of the PDF in the code when you click the button but as this will be used on multiple PC's which are not always connected to the company network - is there a way to 'bundle' the PDF document with my Excel file so that goes wherever it goes?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Thanks.

I've inserted the PDF (it now shows the PDF icon and the file path) - can I hide this from view and simply open the PDF using the button? Looks better that way.
 
Upvote 0
You can open the PDF like this:

Code:
Private Sub CommandButton1_Click()
    Me.OLEObjects("Object1").Verb
End Sub

Change the object's name to suit.
 
Upvote 0

Forum statistics

Threads
1,224,617
Messages
6,179,914
Members
452,949
Latest member
beartooth91

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
Back
Top