+ Reply to Thread
Results 1 to 10 of 10

send msg same as netsend

  1. #1
    Forum Contributor
    Join Date
    06-02-2005
    Location
    India
    MS-Off Ver
    2007
    Posts
    138

    Exclamation send msg same as netsend

    We are using winXP 2002 and office-XP 2003.

    We do work mainly in excel application. Now there is need to communicate with our staff in network as we were doing previously in win2000 by using its features of netsend.

    Though we hv upgraded os we are unable to do so and need other alternative through excel application to send messages in network.

    I hv able to detect IP address of my machine through Colo's vba tips:
    http://puremis.net/excel/code/079.shtml

    In my userform it contains 2 textbox and 1 go cmdbtn.
    One txtbox is to enter IP address to whom we need to send and the other txtbox to type our messages to send.

    On clicking go btn, msg should be sent as msgbox to IP address given by me.
    Last edited by ilyaskazi; 06-28-2005 at 02:08 AM.

  2. #2
    NickHK
    Guest

    Re: send msg same as netsend

    ilyaskazi,
    As far as I know net send is still available but may have been disabled
    during the upgrade:
    http://support.microsoft.com/default...;EN-US;Q302089

    http://www.theeldergeek.com/messenger_removal.htm

    NickHK


    "ilyaskazi" <ilyaskazi.1rbome_1119938711.6622@excelforum-nospam.com> wrote
    in message news:ilyaskazi.1rbome_1119938711.6622@excelforum-nospam.com...
    >
    > We are using winXP 2002 and office-XP 2003.
    >
    > We do work mainly in excel application. Now there is need to
    > communicate with our staff in network as we were doing previously in
    > win2000 by using its features of netsend.
    >
    > Though we hv upgraded os we are unable to do so and need other
    > alternative through excel application to send messages in network.
    >
    > I hv able to detect IP address of my machine through Colo's vba tips:
    > http://puremis.net/excel/code/079.shtml
    >
    > In my userform it contains 2 textbox and 1 go cmdbtn.
    > One txtbox is to enter IP address to whom we need to send and the other
    > txtbox to type our messages to send.
    >
    > On clicking go btn, msg should be sent as msgbox to IP address given by
    > me.
    >
    >
    > --
    > ilyaskazi
    > ------------------------------------------------------------------------
    > ilyaskazi's Profile:

    http://www.excelforum.com/member.php...o&userid=23969
    > View this thread: http://www.excelforum.com/showthread...hreadid=382708
    >




  3. #3
    Forum Contributor
    Join Date
    06-02-2005
    Location
    India
    MS-Off Ver
    2007
    Posts
    138
    thankyou nick for that information.

    but we are now working on something which we require through excel vba to pass our work information in our fashion.

    The request i made here is to simply send msg to upon which our work depends.

  4. #4
    Bob Phillips
    Guest

    Re: send msg same as netsend

    Here is a suggestion I found in Google, but haven't tried it myself


    Within VBA, ensure you add a reference to "Windows Script Host Object
    Model", then you may copy and paste the following code into a new Module:


    Option Explicit


    Sub ExecuteNetSend()


    Dim objShell As New WshShell
    Dim objExec As WshExec
    Dim strComputer As String
    Dim strMessage As String
    Dim ReadAll As String


    strComputer = "ComputerNameHere"
    strMessage = "Testing Net Send"


    Set objExec = objShell.Exec("Net Send " & strComputer & " " & strMessage)


    Do While Not objExec.StdOut.AtEndOfStream
    ReadAll = objExec.StdOut.ReadAll
    Loop


    MsgBox ReadAll, vbInformation, "Net Send Results"

    End Sub


    --
    HTH


    Bob Phillips

    "ilyaskazi" <ilyaskazi.1rbu6d_1119945914.3139@excelforum-nospam.com> wrote
    in message news:ilyaskazi.1rbu6d_1119945914.3139@excelforum-nospam.com...
    >
    > thankyou nick for that information.
    >
    > but we are now working on something which we require through excel vba
    > to pass our work information in our fashion.
    >
    > The request i made here is to simply send msg to upon which our work
    > depends.
    >
    >
    > --
    > ilyaskazi
    > ------------------------------------------------------------------------
    > ilyaskazi's Profile:

    http://www.excelforum.com/member.php...o&userid=23969
    > View this thread: http://www.excelforum.com/showthread...hreadid=382708
    >




  5. #5
    Forum Contributor
    Join Date
    06-02-2005
    Location
    India
    MS-Off Ver
    2007
    Posts
    138

    Question

    Upon executing i got netsend error msg saying...
    An error occured while sending a message to "Computer name"

    Also note, we are unable to use netsend msg through run command.
    I don't know whether this option is enabled in our computer as per nick provided the information.

    If i try using netsend through run command black screen of dos-type comes and goes-off without sending my message.

    It does not even show me any error msg, whereas executing through excel vba i got err msg (see abv).

    Well, let me know the problem or any other alternative to netsend through vba?

  6. #6
    NickHK
    Guest

    Re: send msg same as netsend

    ilyaskazi,
    Does this not work on Office2003 ?

    Private Sub CommandButton1_Click()
    Shell ("net send " & DestinationMachine & strMessage & " ")
    End Sub

    NickHK

    "ilyaskazi" <ilyaskazi.1rbu6d_1119945914.3139@excelforum-nospam.com> wrote
    in message news:ilyaskazi.1rbu6d_1119945914.3139@excelforum-nospam.com...
    >
    > thankyou nick for that information.
    >
    > but we are now working on something which we require through excel vba
    > to pass our work information in our fashion.
    >
    > The request i made here is to simply send msg to upon which our work
    > depends.
    >
    >
    > --
    > ilyaskazi
    > ------------------------------------------------------------------------
    > ilyaskazi's Profile:

    http://www.excelforum.com/member.php...o&userid=23969
    > View this thread: http://www.excelforum.com/showthread...hreadid=382708
    >




  7. #7
    Forum Contributor
    Join Date
    06-02-2005
    Location
    India
    MS-Off Ver
    2007
    Posts
    138
    not did anything.

    no error msg.. and nothing...

  8. #8
    Forum Contributor
    Join Date
    06-02-2005
    Location
    India
    MS-Off Ver
    2007
    Posts
    138

    Question

    well now i hv checked through command prompt using netsend.

    It shows error msg saying...
    message alias could not be found on the network.

    But I hv given correct alias name, then why this occurs???

  9. #9
    NickHK
    Guest

    Re: send msg same as netsend

    ilyaskazi,
    After reading those acticles, have you checked that the Messenger service is
    actually running ?

    NickHK

    "ilyaskazi" <ilyaskazi.1rc2if_1119956717.6384@excelforum-nospam.com> wrote
    in message news:ilyaskazi.1rc2if_1119956717.6384@excelforum-nospam.com...
    >
    > not did anything.
    >
    > no error msg.. and nothing...
    >
    >
    > --
    > ilyaskazi
    > ------------------------------------------------------------------------
    > ilyaskazi's Profile:

    http://www.excelforum.com/member.php...o&userid=23969
    > View this thread: http://www.excelforum.com/showthread...hreadid=382708
    >




  10. #10
    Forum Contributor
    Join Date
    06-02-2005
    Location
    India
    MS-Off Ver
    2007
    Posts
    138

    Thumbs up

    thankyou nick once again

    the link u provided has solved my problem....
    http://www.theeldergeek.com/messenger_removal.htm

    messenger was disabled by default in our computers.

    I hv now enabled through running "services.msc"

    I also thank Bob for vba code for which our work now depends to pass information in network computers.

    thankyou all.......
    Last edited by ilyaskazi; 11-20-2006 at 06:11 AM.

+ 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