Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Launching context-sensitive HTML Help for a Function in Excel Add-In

Hi,
I built a Excel Add-in using VC++ 6.0 and had compiled my own HTML Help
..chm file. I would like to be able to provide context-sensitive help
for the functions I defined in the Add-in, so that when the user click
on the "Help on this Function" link in the Insert Function dialogue
box, the HTML Help viewer window will pop up.

I know this is possible if I use WinHelp file and pass the
[filename.hlp]![contextID] in the help_topic parameter in the Excel4()
Excel API macro in the C++ code. Is there an equivalent string I
should use for HTML Help?

Thanks,
J

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Launching context-sensitive HTML Help for a Function in Excel Add-In

In VBA you set the help path/file and context ID as a macro option.
This is only has to be done once when the file is created, as shown
below. I'm sorry but I'm not sure exactly how it is done for a VC++
add-in, but I hope this helps.

Application.MacroOptions Macro:="Air_visc", _
Description:="Viscosity of Air, lbm/(in*s)." _
HelpContextID:=1010, HelpFile:=ThisWorkbook.Path & _
"\EngFunctHelp.chm"

The ContextID numbers for each function are specified in the chm file.

Dave Parker


wrote:
Hi,
I built a Excel Add-in using VC++ 6.0 and had compiled my own HTML Help
.chm file. I would like to be able to provide context-sensitive help
for the functions I defined in the Add-in, so that when the user click
on the "Help on this Function" link in the Insert Function dialogue
box, the HTML Help viewer window will pop up.

I know this is possible if I use WinHelp file and pass the
[filename.hlp]![contextID] in the help_topic parameter in the Excel4()
Excel API macro in the C++ code. Is there an equivalent string I
should use for HTML Help?

Thanks,
J


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Launching context-sensitive HTML Help for a Function in Excel Add-In

Hi,
Thanks for your reply. Ideally I would like my solution to be done
inside c++ because my Excel Add-in will be distributed to many users.

Thanks again for your help; you have just showed me one more way of
getting things done.

J


wrote:
In VBA you set the help path/file and context ID as a macro option.
This is only has to be done once when the file is created, as shown
below. I'm sorry but I'm not sure exactly how it is done for a VC++
add-in, but I hope this helps.

Application.MacroOptions Macro:="Air_visc", _
Description:="Viscosity of Air, lbm/(in*s)." _
HelpContextID:=1010, HelpFile:=ThisWorkbook.Path & _
"\EngFunctHelp.chm"

The ContextID numbers for each function are specified in the chm file.

Dave Parker


wrote:
Hi,
I built a Excel Add-in using VC++ 6.0 and had compiled my own HTML Help
.chm file. I would like to be able to provide context-sensitive help
for the functions I defined in the Add-in, so that when the user click
on the "Help on this Function" link in the Insert Function dialogue
box, the HTML Help viewer window will pop up.

I know this is possible if I use WinHelp file and pass the
[filename.hlp]![contextID] in the help_topic parameter in the Excel4()
Excel API macro in the C++ code. Is there an equivalent string I
should use for HTML Help?

Thanks,
J


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
Implementing Context Sensitive Help in Excel App using VBA. MGirish Excel Discussion (Misc queries) 0 January 23rd 06 04:13 PM
Enabling context-sensitive help in Excel for ADO objects Max Excel Programming 3 July 19th 05 03:03 PM
Context sensitive help Jon Bailes Excel Programming 2 January 14th 05 01:19 PM
Context sensitive menu Mark[_36_] Excel Programming 5 March 3rd 04 01:50 PM
context sensitive help Malcolm Excel Programming 0 November 19th 03 02:00 PM


All times are GMT +1. The time now is 11:07 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"