+ Reply to Thread
Results 1 to 6 of 6

How to show context sensitive help

  1. #1
    Registered User
    Join Date
    09-24-2009
    Location
    Atkinson, NH
    MS-Off Ver
    Excel 2003
    Posts
    23

    How to show context sensitive help

    I have created a help file for my application using HTML Help Workshop. Call it Help.chm. There are six files or chapters to the help file, say Welcome.htm, Ch1.htm, Ch2.htm, ..., Ch5.htm. When the Help icon is clicked, a macro runs that uses the code:
    Please Login or Register  to view this content.
    This shows the welcome chapter of the help file but nothing more.

    I have five userforms and each has a command button called Help. Each chapter in the help file applies to one of the user forms. When I click the command button on user form No. 3, I want the Help file to open to Ch3.htm. What code do I need to include in User Form No. three to do this?

    Thanks.
    Last edited by Paul; 10-22-2010 at 05:40 PM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: How to show context sensitive help

    Have a look here.
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to show context sensitive help

    Hi McNultyK

    Here's the code I use.

    In a general module, I have this code:
    Please Login or Register  to view this content.
    In the UserForm, assigned to the "Help" button, I have this code
    Please Login or Register  to view this content.
    It works for me.

    John
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  4. #4
    Registered User
    Join Date
    09-24-2009
    Location
    Atkinson, NH
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: How to show context sensitive help

    Hi John,

    I tried your code, and it works for me too! Thanks, I really appreciate it.

    Ken

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to show context sensitive help

    Hi Ken

    Glad I could help.

    John

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: How to show context sensitive help

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1