Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Net Send to Many by macro

Hello 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 and thex exits the cmd window.


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


The Macro is

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.

How can I have this be able to send to selective cells select (A1, A5, A8,
A20) or continuous cell selection?

Thanks,
Kevin
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Net Send to Many by macro

Sub NetSend()
dim rng as range

for each rng in selection
Shell "cmd.exe /k" & rng.value, vbNormalFocus
next rng

End Sub

--
HTH...

Jim Thomlinson


"Tazflerts" wrote:

Hello 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 and thex exits the cmd window.


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


The Macro is

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.

How can I have this be able to send to selective cells select (A1, A5, A8,
A20) or continuous cell selection?

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
macro to send email scheduler Excel Discussion (Misc queries) 2 October 18th 07 11:20 PM
Can you send a Macro to someone else by email? Greenback Excel Discussion (Misc queries) 3 August 2nd 06 01:01 PM
How can I automate an e-mail to be send in macro? john Excel Discussion (Misc queries) 6 January 25th 06 08:40 PM
using macro to send e-mail bob777 Excel Discussion (Misc queries) 1 November 2nd 05 11:16 PM


All times are GMT +1. The time now is 09:22 PM.

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

About Us

"It's about Microsoft Excel"