#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Net Send to many

Hi All,

I am trying to send network notifications from a selection in Excel 2003

net send B1F4CU35 Please remember business casual Wednesday, Thursday and
Friday..

net send B1F4CU045 Please remember business casual Wednesday, Thursday and
Friday..

net send B1F4CU31 Please remember business casual Wednesday, Thursday and
Friday..

net send B1F4CU39 Please remember business casual Wednesday, Thursday and
Friday..

This version leaves the cmd window open



or



s: && cd \time sheet\wfm\net send\to agents\2009\ && net send B1F4CU040
Please exit after call work! 20091103agents.txt && exit

s: && cd \time sheet\wfm\net send\to agents\2009\ && net send B1F4CU25
Please exit after call work! 20091103agents.txt && exit

s: && cd \time sheet\wfm\net send\to agents\2009\ && net send B1F4CU19
Please exit after call work! 20091103agents.txt && exit

s: && cd \time sheet\wfm\net send\to agents\2009\ && net send BiF4CU20
Please exit after call work! 20091103agents.txt && exit



This version writes the conclusion to a file then exit





The method of sending the selection is from a macro attached to a command
button in the worksheet.



Sub NetSend()

Shell "cmd.exe /k" & ActiveCell, vbNormalFocus

End Sub


This works fine when a single cell is selected and you click on the command
button.

However it only runs the first line when a number of cells is selected (all
or select set like A2, A5, A7, etc


Any assistance is appreciated.

May thanks,
KEvin
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default Net Send to many

Untested, but this, or some minor variation of it, should work.

Sub NetSend()
Dim anyCell As Range

For Each anyCell In Selection
Shell "cmd.exe /k" & anyCell, vbNormalFocus
Next
End Sub


"Tazflerts" wrote:

Hi All,

I am trying to send network notifications from a selection in Excel 2003

net send B1F4CU35 Please remember business casual Wednesday, Thursday and
Friday..

net send B1F4CU045 Please remember business casual Wednesday, Thursday and
Friday..

net send B1F4CU31 Please remember business casual Wednesday, Thursday and
Friday..

net send B1F4CU39 Please remember business casual Wednesday, Thursday and
Friday..

This version leaves the cmd window open



or



s: && cd \time sheet\wfm\net send\to agents\2009\ && net send B1F4CU040
Please exit after call work! 20091103agents.txt && exit

s: && cd \time sheet\wfm\net send\to agents\2009\ && net send B1F4CU25
Please exit after call work! 20091103agents.txt && exit

s: && cd \time sheet\wfm\net send\to agents\2009\ && net send B1F4CU19
Please exit after call work! 20091103agents.txt && exit

s: && cd \time sheet\wfm\net send\to agents\2009\ && net send BiF4CU20
Please exit after call work! 20091103agents.txt && exit



This version writes the conclusion to a file then exit





The method of sending the selection is from a macro attached to a command
button in the worksheet.



Sub NetSend()

Shell "cmd.exe /k" & ActiveCell, vbNormalFocus

End Sub


This works fine when a single cell is selected and you click on the command
button.

However it only runs the first line when a number of cells is selected (all
or select set like A2, A5, A7, etc


Any assistance is appreciated.

May thanks,
KEvin

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Send a macro Wanna Learn Excel Discussion (Misc queries) 10 November 5th 09 09:16 PM
Bypass: A program is trying to send mail using Item.Send prompt Vick Excel Discussion (Misc queries) 1 June 25th 09 03:31 AM
Modify Before Send andiam24 Excel Discussion (Misc queries) 10 May 8th 09 12:55 PM
Send as Attachment [email protected] Excel Discussion (Misc queries) 0 June 7th 06 06:50 PM
My send to in excel/word does not offer send as attachment Mstink Excel Discussion (Misc queries) 11 March 16th 06 02:49 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"