[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

send info from list box to a mail merge document

Posted on 2000-03-23
2
Medium Priority
?
199 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
ndb earned 150 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

650 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