Hi Shasur,
Thanks, you always helps me... It really work. I changed the coding a little bit. I put in userform_initialize() like this:
Private Sub UserForm_Initialize()
Dim sPath As String
Dim sDir
sPath = "C:\Documents and Settings\Monal\My Documents\My Pictures\"
sDir = Dir(sPath & "*.jpg")
Do Until Len(sDir) = 0
ComboBox1.AddItem sDir
sDir = Dir
Loop
End Sub
Anyway, thanks.... That really help me lots...
Regards,
Mona
|