#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Help button

I have a userform. In this userform I want the user to be able to access a
users manual (preferably in the form of a .pdf-file). How the user can
access the users manual is of little importance as long as it is convenient
e.g. by pressing a button but preferably the user shall be able to click on
menu (as in word etc.) that is to be placed at the top edge of the user form.
However, I do not know who to make the button work or if possible to write
the code so that a menu is avaliable. Please if someone can help me I would
be most greatful.

Yours sincerly,

Fabrizio S.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Help button

This worked ok for me in xl2003 and winXP home:

Option Explicit
Private Sub CommandButton1_Click()

Dim myFileName As String
myFileName = "c:\somefilename.pdf"

Shell Environ("comspec") & " /c " & myFileName, vbHide

End Sub

Another option from John Walkenbach:
http://j-walk.com/ss/excel/tips/tip51.htm

Fabrizio wrote:

I have a userform. In this userform I want the user to be able to access a
users manual (preferably in the form of a .pdf-file). How the user can
access the users manual is of little importance as long as it is convenient
e.g. by pressing a button but preferably the user shall be able to click on
menu (as in word etc.) that is to be placed at the top edge of the user form.
However, I do not know who to make the button work or if possible to write
the code so that a menu is avaliable. Please if someone can help me I would
be most greatful.

Yours sincerly,

Fabrizio S.


--

Dave Peterson
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
Inserting a Graphic on a Button when the Button is Assigned to a M smck Excel Discussion (Misc queries) 2 October 27th 09 04:46 PM
Create floating button based on button click in menu ExcelMonkey Excel Programming 2 October 12th 05 06:43 PM
How do I lock a radio button group if a N/A button is selected worry a lot Excel Discussion (Misc queries) 2 May 21st 05 08:33 PM
Can't select macro button after other button is pressed C. Campbell Excel Programming 1 November 30th 04 07:46 PM
Delete a custom button by holding down the ALT key and dragging the button off the toolbar Stephen[_8_] Excel Programming 0 April 4th 04 02:22 PM


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

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"