Hello Roger,
RM> I have a small programme, Foreign.exe in C:\Windows which I want to link
to a
RM> toolbar button in Word 7.
RM> My macro attempt is a disaster and throws up "syntax error", can anyone
advise,
RM> please. "Word Basic Error = 100"
RM>
RM> I tried Sub main
RM> C:\windows\foreign.exe
RM> End sub
RM>
I don't know much about these things, but I use the following to
put a Bible program onto my toolbar. It works. Adjust it to
serve yourself. It looks like you are missing the SHELL and
quotes.
Sub Main
If AppIsRunning("Online Bible") Then
AppActivate "Online Bible"
Else
ChDir "C:\Bible"
Shell "C:\Bible\Biblewin.exe"
End if
End Sub
Hope it helps.
Gerald
Gerald Boisvert gerald.boisvert@xonxoff.com
---
þ SPEED 2.00 #1417 þ
---------------
* Origin: XON/XOFF Information Service (1:12/159)
|