Milti-Select listbox into word documents

petk65
01-13-2004, 12:15 AM
Hi,

Here is my problem: I have a multi-select listbox in access form, there is also a command button and bihend that button I have some code which perform word automation with bookmarks to fill fron the data I selected but each time I select more than one and hit the button, it will give a result which is in backward order of the data I selected.

Any idea or sample code would be appreciated!

Thanks,

petk65

petk65
01-13-2004, 03:17 AM
Hi,

Here is my problem: I have a multi-select listbox in access form, there is also a command button and bihend that button I have some code which perform word automation with bookmarks to fill fron the data I selected but each time I select more than one and hit the button, it will give a result which is in backward order of the data I selected.

Any idea or sample code would be appreciated!

Thanks,

petk65

I'm really desperate to solve this, I hope sombody can help me! the following is my code:

For each varItem In List.ItemsSelected
strName = List.Column(1, varItem) & vbCrLf
With oApp.Selection
.Goto What:=wdGoToBookmark, Name:="Bookmrk1"
.TypeText Text:=strName
End With
Next varItem

It will pass the selected Item to word but it is in inverted order.

Thanks a lot,
petk65

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum