It's not a RowSource question at all, even though that's what the topic
indicates.
Private Sub UserForm_Initialize()
Dim NLDir As String
Dim NL As String
NLDir = ThisWorkbook.Path & "\NewsLetters\"
NL = Dir(NLDir & "*.pdf")
With Me.ComboBox1
Do Until NL = vbNullString
.AddItem NL
NL = Dir()
Loop
End With
End Sub
Note that you have no control over the order in which Dir() return the file
names.
--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email on the web site)
"JRB @eclipse.co.uk>" <sa3214<nospam> wrote in message
news:GK-dnRiU--(E-Mail Removed)...
>I need to populate a ComboBox with the filenames contained in a directory
>
> I am using the following code to find the first file but am at a loss to
> find the remaining files
>
> Private Sub UserForm_Initialize()
> NLDir = ThisWorkbook.Path & "\NewsLetters\"
> NL = Dir(NLDir & "*.pdf")
> End Sub
>
> Some example code would be greatly appreciated
>
> Regards and TIA
>
>