ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Send network message (https://www.excelbanter.com/excel-programming/416653-send-network-message.html)

steven

Send network message
 
Shell "NET SEND machinename 'Good Evening'"

I think I have my machine name correct.

I tried this using my machine name and did not get a response back.

What am I doing wrong?

Thank you,

Steven

joel

Send network message
 
I forgot the spaces

Shell "NET SEND " & machinename & " Good Evening"


"Steven" wrote:

Shell "NET SEND machinename 'Good Evening'"

I think I have my machine name correct.

I tried this using my machine name and did not get a response back.

What am I doing wrong?

Thank you,

Steven


joel

Send network message
 
I think you are using machinename as a variable. Try this

Shell "NET SEND" & machinename & "Good Evening"

Shell expect a string. The string can be a catenation of other strings like
the example above.


"Steven" wrote:

Shell "NET SEND machinename 'Good Evening'"

I think I have my machine name correct.

I tried this using my machine name and did not get a response back.

What am I doing wrong?

Thank you,

Steven



All times are GMT +1. The time now is 11:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com