Public Sub CommandButton1_Click()
Dim no
no = "7253930"
Dim number
number = "C:\DIAL.EXE " + no
Dim retVal
retVal = Shell(number, 0)
End Sub
Dial.exe is a program to sound DTMF on the PC speaker....My end result is to
have this button dial whichever number is highlighted on the contacts page,
but I cant get it to dial anything...I get a :
'Type Mismatch: 'Shell'' error....If I use quotes ("Shell(number,1)") I dont
get an error but it does not dial. This same code works in VisualBasic 6.0
Learning Edition.
Is there a limitation on the Outlook Scripts which does not allow the Shell
function to work? I am new at this and dont understand some things.
After getting this fiz, I would like to replace the no variable with the
Field from outlook for business phone. This would be very handy for dialing
thru the speaker on a PBX system which we can't hook our modems to.
If anyone can help I'd appreciate it...Or an add-in for Outlook98 to DTMF
thru the speaker/sound card...
Thanks
--
Dave L.
kb2...@spam.arrl.net
<REMOVE SPAM. TO EMAIL>