siguemepro
Gebruiker
- Lid geworden
- 24 mrt 2007
- Berichten
- 29
Beste Leden,
hoe kan ik in mijn werkbladen een telefoonnummer aanklikken en dan deze te bellen.
ik heb een marco gevonden maar weet echt niet hoe deze in te passen in mijn werkbladen.
wie o wie kan mij op weg helpen want op youtube kan ik hier niks over vinden ;-)
ik werk nu met excel 2016. heb de ontwikkelaars keuze aan gezet. maar dan?????
alvast bedankt voor jullie antwoorden en hulp.
grtjes
siguemepro
macro telefoonnummer kiezen :
Sub TelefoonKiezen()
' Transfers active cell contents to Dialer
' And then dials the phone
' Get the phone number
CellContents = ActiveCell.Value
If CellContents = "" Then
MsgBox "Kies een cel met een telefoonnummer."
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 "%m"
' Application.SendKeys "{TAB}~", True
End Sub
hoe kan ik in mijn werkbladen een telefoonnummer aanklikken en dan deze te bellen.
ik heb een marco gevonden maar weet echt niet hoe deze in te passen in mijn werkbladen.
wie o wie kan mij op weg helpen want op youtube kan ik hier niks over vinden ;-)
ik werk nu met excel 2016. heb de ontwikkelaars keuze aan gezet. maar dan?????
alvast bedankt voor jullie antwoorden en hulp.
grtjes
siguemepro
macro telefoonnummer kiezen :
Sub TelefoonKiezen()
' Transfers active cell contents to Dialer
' And then dials the phone
' Get the phone number
CellContents = ActiveCell.Value
If CellContents = "" Then
MsgBox "Kies een cel met een telefoonnummer."
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 "%m"
' Application.SendKeys "{TAB}~", True
End Sub
Laatst bewerkt: