Net Send command trough VBA

  • Thread starter Thread starter Michael Rhein
  • Start date Start date
M

Michael Rhein

Guys,

I'm trying to execute Net Send command trough Excel VBA, and need your
help on my code below :

Sub Button2_Click()
Dim PCName$, Message$
PCName$ = Range("D2").Value
Message$ = Range("D4").Value

Shell "Net Send " & PCName$ & Message
End Sub

Thanks in advance guys.

rgds
MR
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top