![]() |
#8
|
||||
|
||||
![]()
Hi Marrick,
Try: Code:
Private Sub CmdCopyStyle_Click() Dim DestDoc As String, x As Long, y As Long For x = 0 To ListBox3.listcount - 1 DestDoc = ListBox3.Column(0, x) For y = 0 To ListBox2.listcount - 1 Application.OrganizerCopy Source:=SourceFile, Destination:=DestDoc, _ Name:=ListBox2.Column(0, y), Object:=wdOrganizerObjectStyles Next y Next x End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to use for loop in formula in VBA? | tinfanide | Excel Programming | 1 | 12-06-2011 08:33 AM |
music loop in powerpoint presentation | genoMU69 | PowerPoint | 1 | 06-15-2011 08:00 AM |
While loop not working right | Cbrehm | Excel Programming | 0 | 05-11-2011 11:05 AM |
![]() |
cksm4 | Word | 6 | 01-06-2011 09:03 PM |
Outlook 2003 restart in a loop | Stegel | Outlook | 0 | 06-29-2007 12:34 PM |