Run VBA help by macro

F

F.H. van Zelm

Hi there,

I try to run the VBA help for PowerPoint 2003 by means of a macro
in PowerPoint. This is my code:

Shell "D:\Windows\HH.exe D:\Program Files\Microsoft
Office\Office11\1033\VBAPP10.chm", vbNormalFocus

Basically it 'works' but it produces a lot of errors about 'invalid HTML
tag' and won't display any graphics in the help file (e.g. in the object
model).
I tried things like
HH.EXE -mapid 1001 ms-its:
and
HH.EXE ms-its::
but that doesn't help.

Could anybody give the correct syntax?
 
S

Shyam Pillai

Declare this API :
Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal
hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal
lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long)
As Long

Make the call:
Call ShellExecute(0,"Open","D:\Program Files\Microsoft
Office\Office11\1033\VBAPP10.chm","","",1)

This will open the CHM file in the default program.


--
Regards,
Shyam Pillai

Animation Carbon: Copy/Paste/Share animation libraries.
www.animationcarbon.com
 
F

F.H. van Zelm

Hi Shyam,

I was more or less expecting an answer from you. Thanks for writing.

But ... it didn't change the bad display. On opening the help, I get:
The file mk:mad:MSITStore:D:\Program Files\Microsoft
Office\Office11\1033\VBAPP10.chm::/vbaapp.hhc has an invalid tag.
The help opens but dosn't show any graphics and clicking a link
gives the message:
A Runtime Error has occurred. Do you wish to debug?
Line 16: not implemented.
but the link is followed. When I open the help, e.g. from the Windows
Explorer, I only get the first error message.

Any suggestions?

Mvg, Frans
 
F

F.H. van Zelm

Hi Steve,

In my case it can't be the network, simply because I'm working on a single
laptop.
Based on your writing ... Could the errors be caused by the
::/vbaapp.hcc-part
in the error message? Perhaps an auxilliary file that can't be found. I'm
not
that good on Windows so ...

Kind regards, Frans
 
Top