Run VBA help by macro

  • Thread starter Thread starter F.H. van Zelm
  • Start date Start date
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?
 
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
 
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:@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
 
FWIW, I've run into problems with CHMs when I try to run them from a shared
network directory by doubleclicking them in Windows Explorer. Same general
symptoms as you're describing, I think.

I've not worked out exactly where the magic happens, but if I drag the file to
my local desktop it works and at some point after that, if I go back to the
network drive, it works there too.
 
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
 
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 sure ... though in this case there doesn't appear to be any .hcc part
 
Back
Top