![]() |
|
|
|
#1
|
|||
|
|||
|
Quote:
OK, I think I figured it out. I got the code to work but I have one final question... Code:
With xlWkBk.Worksheets(StrWkSht)
' Find the last-used row in column A.
LRow = .Cells(.Rows.Count, 1).End(xlUp).Row
' Populate the content control,
ActiveDocument.ContentControls(4).DropdownListEntries.Clear
For i = 1 To LRow
ActiveDocument.ContentControls(4).DropdownListEntries.Add Text:=Trim(.Range("A" & i)), Value:=Trim(.Range("B" & i))
Next
End With
Your input (and patience) is very much appreciated.
|
|
#2
|
||||
|
||||
|
Quote:
For i = 2 To LRow
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
|