+ Reply to Thread
Results 1 to 4 of 4

Excel can dial a phone number??

Hybrid View

  1. #1
    Registered User
    Join Date
    02-24-2012
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2007
    Posts
    2

    Excel can dial a phone number??

    Someone asked me if I knew how to make Dell dial a phone number??? Has anyone ever heard of this? How would I make this happen? Can someone explain the logic and functionality?

  2. #2
    Registered User
    Join Date
    02-24-2012
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Excel can dial a phone number??

    I'm sorry, Excel not Dell. Happy Friday! :-)

  3. #3
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Excel can dial a phone number??

    Hi msjoy, it seems that this is possible. See this link to find out more.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Excel can dial a phone number??

    Welcome to the forum.

    I haven't used this in years, and don't intend to revisit it, so you're on your own:

    ' 1. Download MSCOMM32.OCX to WINDOWS/System32 folder
    ' 2. From a command line,
    '   > regsvr32 c:\windows\system32\mscomm32.ocx
    ' 3. Add a reference to Microsoft Comm Control
    
    Declare Function tapiRequestMakeCall _
                      Lib "tapi32.dll" _
                          (ByVal stNumber As String, ByVal stDummy1 As String, _
                           ByVal stDummy2 As String, ByVal stDummy3 As String) As Long
    
    Sub Test()
        DialNumber ("9725551212")
    End Sub
    
    Sub DialNumber(sPhoneNumber As String)
        If MsgBox("Pick up the phone and click OK to dial " & sPhoneNumber, _
                  vbInformation + vbOKCancel, "Dial Number") = vbOK Then
            If tapiRequestMakeCall(sPhoneNumber, "", "", "") < 0 Then
                MsgBox "Unable to dial", vbCritical, "Error!"
            End If
        End If
    End Sub
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1