LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Can excel make a phonecall from a cell?

I'm looking for a script that can make excel make a
phonecall from a cell.

I've tried the one from John Walkenbach (www.j-walk.com)
Everything works out fine,
except for the dialer actually dialing the number. I
think the shourtcut key for dialing is just <enter but I
don't know the code for executing that. Right now it is
sending "%d" (ALT-d), but that doesn't do the trick. Any
suggstions? I use winXP and TAPI 3.0. Maybe someone knows
of another script to make this work.


See script below:
-----------------------

Sub CellToDialer()
' 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



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I only make a cell available if an option from a differentvalidated cell is selected in Excel? Holly Carson Excel Worksheet Functions 2 October 15th 09 12:34 AM
How do I make tab stops within a cell of Excel? B Daniels Excel Worksheet Functions 3 August 4th 06 07:09 PM
How do I make all my text appear in my cell in Excel? Angela Excel Discussion (Misc queries) 1 June 16th 06 02:00 PM
How do I make my arrow buttons move from cell to cell in Excel? slickd1200 Excel Discussion (Misc queries) 1 April 17th 06 05:42 PM
how do i make a cell flash in excel djbuss Excel Discussion (Misc queries) 0 February 28th 05 10:19 PM


All times are GMT +1. The time now is 12:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"