https://github.com/GustavBrock/VBA.HtmlHelp
VBA module for controlling the Microsoft HTML Help Viewer control
https://github.com/GustavBrock/VBA.HtmlHelp
Last synced: 4 months ago
JSON representation
VBA module for controlling the Microsoft HTML Help Viewer control
- Host: GitHub
- URL: https://github.com/GustavBrock/VBA.HtmlHelp
- Owner: GustavBrock
- License: mit
- Created: 2018-04-26T12:35:09.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-27T18:13:35.000Z (over 4 years ago)
- Last Synced: 2024-08-13T07:18:18.004Z (8 months ago)
- Language: VBA
- Size: 984 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - GustavBrock/VBA.HtmlHelp - VBA module for controlling the Microsoft HTML Help Viewer control (VBA)
README
# VBA.HtmlHelp #
### Viewing a compressed help file ###
An *HTML help file* itself is of a special compressed format - with the extension .*chm* - which requires a special viewer. That viewer is often the native viewer of Windows, *Microsoft HTML Help Viewer*, an OCX control.From VBA, the viewer is opened via one of two API calls to the control, *hhctrl.ocx*, which normally is present on all newer Windows installs. This would be very simple, if not for these traps:
* If a context ID is passed for no purpose, the application may crash
* If the help viewer is not closed before exiting the application, the application may crash
* the help viewer will not by itself move to the Contents tab when a context is openedThe documentation on the control is sparse and rudimentary, almost nil, and these traps are to be found by trial and error or to be extracted bit by bit at various fora and blog posts. However, once taken care of, the usage is straight-forward. Only one function is needed.

### Code ###
Code has been tested with both 32-bit and 64-bit *Microsoft Access 2019* and *365*.### Documentation ###
Full documentation can be found here:
[Control the HTML Help Viewer OCX control](https://www.experts-exchange.com/articles/32054/Control-the-HTML-Help-Viewer-OCX-control.html?preview=ZHlWNpC4ZaQ%3D)
Included is a Microsoft Access example application.
*If you wish to support my work or need extended support or advice, feel free to:*
[
](https://www.buymeacoffee.com/gustav/)