+ Reply to Thread
Results 1 to 3 of 3

Net Send

  1. #1
    Registered User
    Join Date
    04-01-2005
    Posts
    4

    Net Send

    I am trying to send a message over the network from excel, where the recipients name would be in a cell (or a list box), and the message to send was in a different cell.

    I thought of using the net send via the dos command prompt eg net send computer.name message.to.send

    Is this the best way? Can anyone help?

    I am just starting out with VBA so any answers would need to be an idiots guide !!

    Thanx

  2. #2
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    try following code

    Private Sub CommandButton1_Click()

    RetVal = Shell("net send " & Range("A1") & " " & Range("B1"))

    End Sub


    where A1 has computer name, and B1 has the message

    Mangesh

  3. #3
    Registered User
    Join Date
    04-01-2005
    Posts
    4

    Smile

    Mangesh,

    Superb, thank you very much.

    (I have been away for a few days so only got to try it today).

    Many Thanks again

    EricTheRed

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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