Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Cell to dialer script with win xp

I'm trying to get this script to work in excel XP, with
Win XP and Tapi 3.0 dialer. Everything works out fine,
except for the dialer actually dialing the number. I
don't know the shortcut key for dialing, and "%d" (ALT-d)
doesn't do the trick. Any suggstions?

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

John Walkenbach
For Excel tips, macros, & downloads...
http://j-walk.com/ss


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Cell to dialer script with win xp

You have at least one more reply at your previous thread--but it points at
google (plus a little more).

anders wrote:

I'm trying to get this script to work in excel XP, with
Win XP and Tapi 3.0 dialer. Everything works out fine,
except for the dialer actually dialing the number. I
don't know the shortcut key for dialing, and "%d" (ALT-d)
doesn't do the trick. Any suggstions?

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

John Walkenbach
For Excel tips, macros, & downloads...
http://j-walk.com/ss


--

Dave Peterson

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Cell to dialer script with win xp

Dave,

Thanks, I also tried the script at the paged you linked
me to. Unfortunately it had a syntax error, that I
couldn't correct.

Other suggestions are welcome.

A
-----Original Message-----
You have at least one more reply at your previous thread-

-but it points at
google (plus a little more).

anders wrote:

I'm trying to get this script to work in excel XP, with
Win XP and Tapi 3.0 dialer. Everything works out fine,
except for the dialer actually dialing the number. I
don't know the shortcut key for dialing, and "%d" (ALT-

d)
doesn't do the trick. Any suggstions?

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

John Walkenbach
For Excel tips, macros, & downloads...
http://j-walk.com/ss


--

Dave Peterson

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Cell to dialer script with win xp

Are you anonymous, too?

Someone posted that they got it working. Maybe they'll post what they used
(even if it was you!)

Anders wrote:

Dave,

Thanks, I also tried the script at the paged you linked
me to. Unfortunately it had a syntax error, that I
couldn't correct.

Other suggestions are welcome.

A
-----Original Message-----
You have at least one more reply at your previous thread-

-but it points at
google (plus a little more).

anders wrote:

I'm trying to get this script to work in excel XP, with
Win XP and Tapi 3.0 dialer. Everything works out fine,
except for the dialer actually dialing the number. I
don't know the shortcut key for dialing, and "%d" (ALT-

d)
doesn't do the trick. Any suggstions?

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

John Walkenbach
For Excel tips, macros, & downloads...
http://j-walk.com/ss


--

Dave Peterson

.


--

Dave Peterson

Reply
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
VBA Script to Rename Tab Name to Whatever Name is in Cell A1 Michael Excel Discussion (Misc queries) 3 March 28th 07 03:04 AM
VBA Script to Rename Tab Name to Whatever Name is in Cell A1 Michael in Texas Excel Discussion (Misc queries) 0 March 28th 07 12:00 AM
Line selection from a cell script through a VBA macro CamiIRE Setting up and Configuration of Excel 2 April 11th 06 04:28 PM
Running a script while editing a cell clayton Excel Discussion (Misc queries) 8 December 15th 05 10:24 PM
Phone Dialer Pat Excel Discussion (Misc queries) 5 January 7th 05 06:28 PM


All times are GMT +1. The time now is 05:02 PM.

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"