Solved

invoking cutomized help in Excel/VBA

Posted on 2000-03-13
3
1,088 Views
Last Modified: 2012-06-27
Configuring a Visual Basic project to use a particular Help file allows you to assign a Help topic identification number to a control on a UserForm. When you select the control and press F1, the topic in the Help file appears.

Instead of using F1 key, is there a way I can have the customized help invoked when the user clicks on a customized button or menu item?

Thanks -
BB
0
Comment
Question by:borghard
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 9

Expert Comment

by:antrat
ID: 2614279
Hi borghard

I believe you could use the WhatsThisHelp  by setting the WhatsThisButton property to true on your user form, sorry I haven't given youi too much in th eawy of an example, but my ISP is about to boot me off the net :(

anyway this is from the help and should get you on your way

Returns a Boolean value that determines whether context-sensitive Help uses the pop-up window provided by Windows 95 Help or the main Help window. Read-only at run time.

Remarks

The settings for the WhatsThisHelp property are:

Setting      Description
True      The application uses one of the What's This access techniques to start Windows Help and load a topic identified by the WhatsThisHelpID property.
False      (Default) The application uses the F1 key to start Windows Help and load the topic identified by the HelpContextID property.
Remarks

There are two access techniques for providing What's This Help in an application. The WhatsThisHelp property must be set to True for any of these techniques to work.

·      Providing a What's This button on the title bar of the UserForm using the WhatsThisButton property. The mouse pointer changes to the What's This state (arrow with question mark). The topic displayed is identified by the WhatsThisHelpID property of the control clicked by the user.
·      Invoking the WhatsThisMode method of a UserForm. This produces the same behavior as clicking the What's This button without using a button. For example, you can invoke this method from a command on a menu in the menu bar of the application.


Good luck

antrat
0
 
LVL 5

Accepted Solution

by:
vboukhar earned 71 total points
ID: 2614885
I guess, you can call Application.Help method with name of your custom .Hlp file and topic ID - look at VBA help for details:

expression.Help(HelpFile, HelpContextID)

expression   Required. An expression that returns an Application object.

helpFile   Optional Variant. The name of the online Help file you want to display. If this argument isn't specified, Microsoft Excel Help is used.

helpContextID   Optional Variant. Specifies the context ID number for the Help topic. If this argument isn't specified, the Help Topics dialog box is displayed.
.....

hope it helps
0
 

Author Comment

by:borghard
ID: 2616168
Thanks!  
I think I was close w trying:
Application.VBE.ActiveVBProject.HelpFile = ...
but couldn't get it to work.

Your suggestion worked like a charm.

BB
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question