Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default pdf file in a UserForm

Is there a way to insert a .pdf file in a UserForm and be able to scroll
through the pages?
  #2   Report Post  
Posted to microsoft.public.excel.programming
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?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default pdf file in a UserForm

Hi Jacob, thanks for your reply. In this project, I have two other
UserForms with imbedded TextBoxes, activated by the user clicking on an
"information" autoshape hyperlinked to the code. I want to do the same here
- but isn't your code looking for the .pdf outside the workbook? I need to
have the .pdf located in the Excel workbook the same way as the TextBox is
imbedded in the UserForm.

"Jacob Skaria" wrote:

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?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Userform won't show after closing another file Gerry O Excel Discussion (Misc queries) 8 September 7th 07 03:51 PM
Best Way to Get File Names into UserForm Stratuser Excel Programming 2 April 30th 07 06:40 PM
How to embed a PDF file into a userform Incidental Excel Programming 0 November 10th 06 10:13 AM
Saving contents of a Userform to another file. ASU Excel Programming 3 March 1st 06 03:19 PM
UserForm Pops Up when in the wrong file. Jeff Marshall[_2_] Excel Programming 0 July 29th 03 08:44 PM


All times are GMT +1. The time now is 11:09 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"