Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default emailing everyone on the list

I want to email everyone on the list, rather than having to click on them one
by one with the following command button.

Private Sub cmdAdd_Click()
Dim i As Integer
For i = 0 To lstEmployees.ListCount - 1
If lstEmployees.Selected(i) = True Then
lstAttendees.AddItem _
lstEmployees.List(i)
lstEmployees.Selected(i) = False
End If
Next i
cmdRemoveAll.Enabled = True
End Sub

Any ideas.

Kindest regards

PaddyMac

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 298
Default emailing everyone on the list

Just remove the check on whether an employee item is selected or not.

Private Sub cmdAddAll_Click()
Dim i As Integer
For i = 0 To lstEmployees.ListCount - 1
lstAttendees.AddItem lstEmployees.List(i)
Next i
cmdRemoveAll.Enabled = True
End Sub

Tim


"PaddyMac" wrote in message
...
I want to email everyone on the list, rather than having to click on them
one
by one with the following command button.

Private Sub cmdAdd_Click()
Dim i As Integer
For i = 0 To lstEmployees.ListCount - 1
If lstEmployees.Selected(i) = True Then
lstAttendees.AddItem _
lstEmployees.List(i)
lstEmployees.Selected(i) = False
End If
Next i
cmdRemoveAll.Enabled = True
End Sub

Any ideas.

Kindest regards

PaddyMac



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default emailing everyone on the list

On Oct 12, 2:42*pm, "Tim Williams" wrote:
*Just remove the check on whether an employee item is selected or not.

Private Sub cmdAddAll_Click()
* * Dim i As Integer
* * For i = 0 To lstEmployees.ListCount - 1
* * * * lstAttendees.AddItem lstEmployees.List(i)
* * Next i
* * cmdRemoveAll.Enabled = True
*End Sub

Tim

"PaddyMac" wrote in message

...



I want to email everyone on the list, rather than having to click on them
one
by one with the following command button.


Private Sub cmdAdd_Click()
* *Dim i As Integer
* *For i = 0 To lstEmployees.ListCount - 1
* * * *If lstEmployees.Selected(i) = True Then
* * * * * *lstAttendees.AddItem _
* * * * * * * *lstEmployees.List(i)
* * * * * *lstEmployees.Selected(i) = False
* * * *End If
* *Next i
* *cmdRemoveAll.Enabled = True
End Sub


Any ideas.


Kindest regards


PaddyMac- Hide quoted text -


- Show quoted text -


Tim

If works!

Many thanks.

Kindest regards

PaddyMac
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
Creating emailing list from column of addresses Howard Excel Discussion (Misc queries) 2 April 9th 10 06:38 PM
Emailing momotaro Excel Discussion (Misc queries) 1 March 21st 06 09:12 PM
Emailing A List of People using VBA n_s_simpson Excel Programming 2 February 24th 06 09:13 AM
setting up a mailing list for bulk emailing with handimail OUTLOOK PROBLEMM Excel Discussion (Misc queries) 0 February 22nd 06 09:39 AM
emailing recipients from a list in Excel Jeff[_22_] Excel Programming 2 October 1st 03 06:23 PM


All times are GMT +1. The time now is 04:27 AM.

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"