473,466 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How do I send Instant Messages through VBA?

How do I send Instant Messages through VBA?
Nov 12 '05 #1
2 3591
Here's some code that works for AOL-IM.
I hope it helps you.
lq

Function AOLAIM(myFrm As String)
On Error GoTo myErr
'attach this sode to a command button beside the screen name field

'ScreenName is the name of the field where the IM name is
Forms(myFrm).ScreenName.SetFocus

If Len(Forms(myFrm).ScreenName) > 0 Then

'make sure this is the correct path:
Dim myPath As String
myPath = "C:\Program Files\AIM\Aim.exe"
Shell myPath & " aim:goim?screenname=" &
Forms(myFrm).ScreenName, vbNormalFocus
End If

myExit:
Exit Function
myErr:
If Err.Number = 53 Then
'AOL .exe file not found so run some code to locate it:
Else
MsgBox Err.Number & " " & Err.Description
End If
Resume myExit
End Function

jd****@ironbridgellc.com (John Davis) wrote in message news:<1c**************************@posting.google. com>...
How do I send Instant Messages through VBA?

Nov 12 '05 #2
I implemented the code below and it only opens an IM message. How do I
get it to send it automatically

Thanks in advance for your help

John
Lauren Quantrell wrote:
Here's some code that works for AOL-IM.
I hope it helps you.
lq

Function AOLAIM(myFrm As String)
On Error GoTo myErr
'attach this sode to a command button beside the screen name field

'ScreenName is the name of the field where the IM name is
Forms(myFrm).ScreenName.SetFocus

If Len(Forms(myFrm).ScreenName) > 0 Then

'make sure this is the correct path:
Dim myPath As String
myPath = "C:\Program Files\AIM\Aim.exe"
Shell myPath & " aim:goim?screenname=" &
Forms(myFrm).ScreenName, vbNormalFocus
End If

myExit:
Exit Function
myErr:
If Err.Number = 53 Then
'AOL .exe file not found so run some code to locate it:
Else
MsgBox Err.Number & " " & Err.Description
End If
Resume myExit
End Function

jd****@ironbridgellc.com (John Davis) wrote in message

news:<1c**************************@posting.google. com>...
How do I send Instant Messages through VBA?


Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Ray Paseur | last post by:
We broadcast email messages with PHP scripts, but sometimes email is not timely and we would like to send something that could get there faster. Can anyone tell me about how to send Instant...
1
by: John Davis | last post by:
How do I send Instant Messages through VBA?
1
by: Mark R | last post by:
Hi All, I am trying to create an instant messenger tool within the database, mainly so messages can be left for colleagues on different shifts (not all of them have a mail account). I have created...
0
by: Matt | last post by:
Is there any way to send an Instant Message via RVP programmatically (C# preferably) much in the same way that windows messenger 5.0 sends a message through exchange.
5
by: zorhel | last post by:
Hi. My clients will be IE, Mozilla and Opera in a Windows and *nix OS. So, my web app need to, from a server, send messages to a specific client (browser), send messages for all clients,...
10
by: Nader | last post by:
Hello, I'd like to send command or message within access to other users who are connected to the same mdb file. Is that possible ? thanks in advance. Nader
6
by: Ed Leafe | last post by:
I've been approached by a local business that has been advised that they need to start capturing and archiving their instant messaging in order to comply with Sarbanes-Oxley. The company is largely...
2
by: SammyBar | last post by:
Hi all, I'm trying to send a message from ASP.NET to another PC by using MSMQ. I created my ASP.NET project by using Visual Studio 2005 but I initially set the project to be located on the File...
0
by: neonspark | last post by:
I'm buidling some simple macro functionality for my app so the users can record a sequence of keyboard inputs and replay them reliably via some menu. Originally, I used: protected override bool...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.