J
Joanne
I have the following code which is meant to take multiple selections from a
list box and paste them into a document at the site of a bookmark. I'm not
getting the value from the list box correctly. Any help would be greatly
appreciated.
Public Sub AddPracticeAreas()
Dim i As Integer
Dim strPractice(10) As String
ActiveDocument.Bookmarks("bmPracticeAreas").Select
For i = 0 To 9
If frmAttyBio.listPracticeAreas.Selected(i) = True Then
Selection.Collapse wdCollapseEnd
strPractice = frmAttyBio.listPracticeAreas.Selected(i)
Selection.Text = "| " & strPractice
If Selection.Text = strPractice(0) Then
Selection.Text = strPractice
End If
End If
Next i
End Sub
list box and paste them into a document at the site of a bookmark. I'm not
getting the value from the list box correctly. Any help would be greatly
appreciated.
Public Sub AddPracticeAreas()
Dim i As Integer
Dim strPractice(10) As String
ActiveDocument.Bookmarks("bmPracticeAreas").Select
For i = 0 To 9
If frmAttyBio.listPracticeAreas.Selected(i) = True Then
Selection.Collapse wdCollapseEnd
strPractice = frmAttyBio.listPracticeAreas.Selected(i)
Selection.Text = "| " & strPractice
If Selection.Text = strPractice(0) Then
Selection.Text = strPractice
End If
End If
Next i
End Sub