LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default How to embed a PDF file into a userform

Hi there

I saw a post the other day with someone asking how to show or embed an
acrobat file in a userform. I can't remember who it was that posted
but I thought I would put this up just in case they are on line having
a look. This works with Excel 2000 SP3 and Acrobat reader 6 I can't
tell you if it will work with any other versions as I don't have them
to test.

In the VBETools MenuReferences check the checkbox for "Acrobat
control for ActiveX".

Then on your toolbox right click and select addition controls and again
check the "Acrobat control for ActiveX" checkbox.

This will add an adobe acrobat control to your toolbox.

Drag a PDF control on to a user form and then add the following code


Option Explicit
Private Sub UserForm_Initialize()
Pdf1.LoadFile ("C:\Test\excel vba.pdf")
' you can use this to turn the toolbars on and off
Pdf1.setShowToolbar False
End Sub
' when you unload the form you need to close the PDF before doing so
or acrobat will
' give you an error. I'm not sure if this is the best way but it
worked for me.
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As
Integer)
Pdf1.LoadFile ("")
End Sub

Hope this is of some help.

Laterz

S

 
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
Embed PDF in Excel UserForm Jay Excel Programming 0 November 5th 06 02:00 AM
Embed a Userform into an Excel document jeffbert Excel Programming 3 June 8th 06 06:27 PM
how do i embed a file in a workbook IAN C Excel Discussion (Misc queries) 2 April 28th 06 04:27 PM
Embed Folder Treeview Or Windows Explorer On UserForm MDW Excel Programming 4 January 27th 06 03:49 PM
How do I embed a PDF file within Excel Eddy05 Excel Discussion (Misc queries) 1 January 25th 05 08:37 PM


All times are GMT +1. The time now is 06:35 AM.

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

About Us

"It's about Microsoft Excel"