quick call on excel

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can I command a call to the pc's modem by a simple clic on a cell? I work as a sallesman. I've so many calls to do every day and it's really hard to me.
Thanks for any help.
Fernando
 
try this. It could be converted to a double click event.

Sub CellToDialer() 'John Walkenbach
' Transfers active cell contents to Dialer
' And then dials the phone

' Get the phone number
CellContents = ActiveCell.Value
If CellContents = "" Then
MsgBox "Select a cell that contains a phone number."
Exit Sub
End If

' Activate (or start) Dialer
Appname = "Dialer"
AppFile = "Dialer.exe"
On Error Resume Next
AppActivate (Appname)
If Err <> 0 Then
Err = 0
TaskID = Shell(AppFile, 1)
If Err <> 0 Then MsgBox "Can't start " & AppFile
End If

' Transfer cell contents to Dialer
Application.SendKeys "%n" & CellContents, True

' Click Dial button
Application.SendKeys "%d"
' Application.SendKeys "{TAB}~", True
End Sub



--
Don Guillett
SalesAid Software
(e-mail address removed)
Fernando M Passos said:
Can I command a call to the pc's modem by a simple clic on a cell? I work
as a sallesman. I've so many calls to do every day and it's really hard to
me.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top