Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Opening help file with context number

Hi

I am using the shell command to open a help file, something like:
Shell "hh c:\doc\myhelp.chm", 1

I would now like to open the help file at a specific topic ID (or context
number).
Any suggestions,
Thanks in advance
Martien



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 575
Default Opening help file with context number

Martien,

If you have a properly compiled help file this is easy. I have help files
built with Helpmatic Pro (relatively easy to use and good value shareware).
These are different to chm files I believe but I can't really remember the
research I did on this at the time when I settled on my current solution.

On a form I would have something like this

Private Sub cmdHelp_Click()
XHelp 32 'launch topic 32
End Sub

'in a general module
Public Sub XHelp(nContextID As Integer)
Dim strHelpFile As String
strHelpFile = ThisWorkbook.Path & "\EFA USER TOOLS.hlp"
Application.Help strHelpFile, nContextID
End Sub

Robin Hammond
www.enhanceddatasystems.com

"Martien Janssen" wrote in message
...
Hi

I am using the shell command to open a help file, something like:
Shell "hh c:\doc\myhelp.chm", 1

I would now like to open the help file at a specific topic ID (or context
number).
Any suggestions,
Thanks in advance
Martien





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Opening help file with context number

Martien,

I am using the shell command to open a help file, something like:
Shell "hh c:\doc\myhelp.chm", 1

I would now like to open the help file at a specific topic ID (or context
number).


See the following page for two ways to open a specific help topic from
the command line.

http://helpware.net/FAR/far_faq.htm#HHEXEParams

If you need instructions on how to set up the help file to use context
IDs, the best places to look a

http://www.mvps.org/htmlhelpcenter/h...s.html#mapping
http://helpware.net/htmlhelp/how_to_context.htm

--
Pete (Microsoft Help MVP)
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Opening help file with context number


Thanks Robin for your reply. There is one problem though.
Application.Help does not seem to work with chm files, at least not with
mine (which I created with Help&Manual, not freeware or shareware but
quite recommendable).
I therefore use pete solution with a shell command launching the hh.exe
command needed for the chm files.

Thanks again,
Martien



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
Formula for having next number show when opening file char819 Excel Discussion (Misc queries) 1 February 9th 09 02:40 PM
File:1 and File:2 -- Double Files when Opening One File dallin Excel Discussion (Misc queries) 1 January 25th 07 02:53 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
File name changes on opening - adds a number to end darrenrwood Excel Discussion (Misc queries) 11 July 23rd 05 07:19 PM
why does my file name get suffixed with a number when opening ? sanowman Excel Discussion (Misc queries) 1 July 8th 05 08:37 AM


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