Solved

send info from list box to a mail merge document

Posted on 2000-03-23
2
183 Views
Last Modified: 2010-05-02
Okay, I'm learning.....

The mail merge works like a charm.  One more bit of functionality I need to add.  

I select a document from the combo box, the appropriate people show up.  The user selects any number of the records in ListBox1 to transfer to ListBox2.  

I need to send the mail merged form letter to all the selected records from ListBox2.

I understand that would be a For..Next Loop, but do I use the count property?  ListIndex?  I'm unclear and my syntax is breaking the form.  

Please help!!
-A
0
Comment
Question by:ambulance
2 Comments
 
LVL 1

Accepted Solution

by:
ndb earned 50 total points
ID: 2651253
Hi,

Try this:

For i = 0 to List1.ListCount - 1
  If List1.Selected(i) Then
    Debug.Print List1.List(i)
  End If
Next i

This will print each item that the user selected.
0
 

Author Comment

by:ambulance
ID: 2654088
Duh!  Why didn't I come up with that?!  
Harumph....

Thanks.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now