Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / December 2006

Tip: Looking for answers? Try searching our database.

Dial Phone from Active Excel Cell

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wayfarer - 31 Dec 2006 17:59 GMT
I'd like to dial a phone number contained in the current cell in
Excel 2003. I have a voice modem.  I've Googled and searched
microsoft.com and I can't find it anywhere, if it's possible at
all.  I've see shareware that makes it possible, but if I can't
do it for free I'll live with it.  Can anyone enlighten me?

TIA

Neill

Signature

Wayfarer
Journeys: http://www.journeys.ws/

Live light, dream true, burn bright...

Paul B - 31 Dec 2006 20:52 GMT
Neill, try this.

Sub CellToDialer()
'Here's some VBA code from John Walkenbach "Excel 2000 Power Programming
With VBA" book.
'It uses SendKeys to click the Dial button:

'   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"
End Sub

Signature

Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

> I'd like to dial a phone number contained in the current cell in
> Excel 2003. I have a voice modem.  I've Googled and searched
[quoted text clipped - 5 lines]
>
> Neill

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.