Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default How do you specify the Help file to be used

I'm using Excel 2007 and I am trying to assign Help to the various controls.
I've built the help file(CHM) and have used the following to test it:

Application.Help FilePathandName, ContextID

everything displays fine.

However, for CommandButton1, I've set its HelpContextID and set the form's
WhatsThisButton and WhatsThisHelp to True and things still don't seem to
work. The Help button comes out in the Title bar and the Question mark comes
out with the cursor when the Help button is clicked. However, nothing
happens when I click on CommandButton1. How do you let it know which Help
file you want to use?

Thanks for any thoughts,

Mike



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default How do you specify the Help file to be used

Thoughts from the xl97 help file (better, faster, stronger) ...

"The topic identified by the HelpContextID property is available to users when a form is running. To display the topic, the user
must either select the control or set focus to the control, and then press F1."
Copyright(c) 1996 Microsoft Corporation.
--
Jim Cone
Portland, Oregon USA




"Mike"
wrote in message
I'm using Excel 2007 and I am trying to assign Help to the various controls.
I've built the help file(CHM) and have used the following to test it:

Application.Help FilePathandName, ContextID

everything displays fine.
However, for CommandButton1, I've set its HelpContextID and set the form's
WhatsThisButton and WhatsThisHelp to True and things still don't seem to
work. The Help button comes out in the Title bar and the Question mark comes
out with the cursor when the Help button is clicked. However, nothing
happens when I click on CommandButton1. How do you let it know which Help
file you want to use?
Thanks for any thoughts,
Mike



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default How do you specify the Help file to be used

Also, a listing of Help ID's is available for download here...
http://www.rondebruin.nl/id.htm
--
Jim Cone
Portland, Oregon USA

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default How do you specify the Help file to be used

The link info is for pulling out Excel help.

I have built my own help file which I have assigned contextIds for all the
controls in my application. Now, by using the forms "WhatsThisButton" and
"WhatsThisHelp" properties, I want to click on the HELP BUTTON in the title
bar and then click on one of my controls to bring out the help fo my
control. The problem is that I don't know how to tell the application where
my CHM file is. Application.Help(File,ID) doesn't do the job.



"Jim Cone" wrote in message
...
Also, a listing of Help ID's is available for download here...
http://www.rondebruin.nl/id.htm
--
Jim Cone
Portland, Oregon USA



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default How do you specify the Help file to be used

Did you include the file path when you entered the file name?
If the .chm file is in the same folder as the workbook then...

Application.Help ThisWorkbook.Path & "\FileName.chm", 1234
--
Jim Cone
Portland, Oregon USA



"Mike"
wrote in message
The link info is for pulling out Excel help.
I have built my own help file which I have assigned contextIds for all the
controls in my application. Now, by using the forms "WhatsThisButton" and
"WhatsThisHelp" properties, I want to click on the HELP BUTTON in the title
bar and then click on one of my controls to bring out the help fo my
control. The problem is that I don't know how to tell the application where
my CHM file is. Application.Help(File,ID) doesn't do the job.



"Jim Cone" wrote in message
...
Also, a listing of Help ID's is available for download here...
http://www.rondebruin.nl/id.htm
--
Jim Cone
Portland, Oregon USA





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default How do you specify the Help file to be used

Application.Help will display my help file IMMEDIATELY, NOT when I cl;ick on
the desired control after clicking the "WhatsThis" HELP button in the Title
bar.


"Jim Cone" wrote in message
...
Did you include the file path when you entered the file name?
If the .chm file is in the same folder as the workbook then...

Application.Help ThisWorkbook.Path & "\FileName.chm", 1234
--
Jim Cone
Portland, Oregon USA



"Mike"
wrote in message
The link info is for pulling out Excel help.
I have built my own help file which I have assigned contextIds for all the
controls in my application. Now, by using the forms "WhatsThisButton" and
"WhatsThisHelp" properties, I want to click on the HELP BUTTON in the
title
bar and then click on one of my controls to bring out the help fo my
control. The problem is that I don't know how to tell the application
where
my CHM file is. Application.Help(File,ID) doesn't do the job.



"Jim Cone" wrote in message
...
Also, a listing of Help ID's is available for download here...
http://www.rondebruin.nl/id.htm
--
Jim Cone
Portland, Oregon USA





  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default How do you specify the Help file to be used

It appears what you trying to do will Not work with .chm files only with .hlp files.
You can specify the .hlp file in the Initialize event of the form...
.... Application.ThisWorkbook.VBProject.HelpFile = "xxxx.HLP"
and the WhatsThis? feature will work to a degree.
It may be simpler and easier to add a "help" button on the form which opens your file.
--
Jim Cone
Portland, Oregon USA



"Mike"
wrote in message
Application.Help will display my help file IMMEDIATELY, NOT when I cl;ick on
the desired control after clicking the "WhatsThis" HELP button in the Title
bar.

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
File:1 and File:2 -- Double Files when Opening One File dallin Excel Discussion (Misc queries) 1 January 25th 07 02:53 AM
I saved file A over file B. Can I get file B back? Lynn Excel Discussion (Misc queries) 2 May 12th 06 11:24 AM
opening an excel file opens a duplicate file of the same file skm Excel Discussion (Misc queries) 1 December 7th 05 05:52 PM
I SAVED A FILE OVER ANOTHER A FILE IN EXCEL. THE OLD FILE WAS AN . DUFFER8MCD Excel Discussion (Misc queries) 1 December 23rd 04 11:32 PM
i received a file that reads powerpoint document file file exten. CCAROLACEREC Excel Discussion (Misc queries) 1 December 4th 04 05:02 PM


All times are GMT +1. The time now is 11:42 PM.

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

About Us

"It's about Microsoft Excel"