View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Jacob Skaria Jacob Skaria is offline
external usenet poster
 
Posts: 8,520
Default pdf file in a UserForm

From the VBA Toolbox Right clickAdditional Controls check 'Adobe PDF
Reader' form the list of available controls. Drag the control to the user
form and use the below code to load the PDF.

Private Sub CommandButton1_Click()
With Me.AcroPDF1
.LoadFile "d:\ProjectPlan_Website.pdf"
.SetShowToolbar (False)
.GotoFirstPage
End With
End Sub

--
Jacob


"Phil H" wrote:

Is there a way to insert a .pdf file in a UserForm and be able to scroll
through the pages?