Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Context sensitive help

I have written a help file for my application, which works fine. However,
the context sensitive help does not work at all if I don't define the Help
File Name in the Project Properties dialog. As the help file can be
installed into different folders during installation, I can't reliably set
this property at design time.

Can anyone tell me how to define the context sensitive help path and file at
run time, bearing in mind the project is locked and password protected. The
method I have used for defining the 'normal' help involves the WinHelp API
call and the HelpQuit command, unfortunately, this doesn't seem to effect
the context sensitive help.

Any ideas would be appreciated.


Many thanks
Jon




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Context sensitive help

Jon,

You don't show the code, but I usually put the help file in the same file as
the application, and then use ThisWorkbook.Path to pre-prend the help file.

As I am sure that you know, you need context ids to call into the correct
point of the help file.

--
HTH

Bob Phillips

"Jon Bailes" wrote in message
...
I have written a help file for my application, which works fine. However,
the context sensitive help does not work at all if I don't define the Help
File Name in the Project Properties dialog. As the help file can be
installed into different folders during installation, I can't reliably set
this property at design time.

Can anyone tell me how to define the context sensitive help path and file

at
run time, bearing in mind the project is locked and password protected.

The
method I have used for defining the 'normal' help involves the WinHelp API
call and the HelpQuit command, unfortunately, this doesn't seem to effect
the context sensitive help.

Any ideas would be appreciated.


Many thanks
Jon






  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 400
Default Context sensitive help

Within a sub that runs as soon as your workbook is opened, insert this line:

Application.VBE.ActiveVBProject.HelpFile = "c:\xx.hlp"

where c:\xx.hlp is the location & name of your help file. If the location
(and name) varies, you'll need some way of establishing it.

"Jon Bailes" wrote:

I have written a help file for my application, which works fine. However,
the context sensitive help does not work at all if I don't define the Help
File Name in the Project Properties dialog. As the help file can be
installed into different folders during installation, I can't reliably set
this property at design time.

Can anyone tell me how to define the context sensitive help path and file at
run time, bearing in mind the project is locked and password protected. The
method I have used for defining the 'normal' help involves the WinHelp API
call and the HelpQuit command, unfortunately, this doesn't seem to effect
the context sensitive help.

Any ideas would be appreciated.


Many thanks
Jon





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
ISNumber - What Context? ronaldo444 Excel Worksheet Functions 1 August 14th 06 04:59 PM
Implementing Context Sensitive Help in Excel App using VBA. MGirish Excel Discussion (Misc queries) 0 January 23rd 06 04:13 PM
context menu eric23 Excel Programming 3 May 9th 04 11:49 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 01:24 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"