arkadaşlar userformda klasörden okuyacak şekilde resimleri açmak istiyorum yani listbox1 de resimlerin adı yazıcak tıklayınca ımage1 de resim gözükecek
Private Sub ListBox1_Click()
Image1.LoadMovie 0, ThisWorkbook.Path & "\" & ListBox1
End Sub
Private Sub UserForm_Initialize()
Set s1 = CreateObject("Scripting.FileSystemObject")
For Each dosya In s1.GetFolder(ThisWorkbook.Path).Files
uzanti = s1.GetExtensionName(ThisWorkbook.Path & "/" & dosya.Name)
If uzanti = "gif" Then ListBox1.AddItem dosya.Name
Next
End Sub
arkadaşlar bu kodu kulandım ama olmadı hata nerede acaba.
ve ayrıca userforma bir mp3 dosyasını nasıl gömeriz yani klasörden değilde formun içine nasıl gömeriz tşk.
Private Sub ListBox1_Click()
Image1.LoadMovie 0, ThisWorkbook.Path & "\" & ListBox1
End Sub
Private Sub UserForm_Initialize()
Set s1 = CreateObject("Scripting.FileSystemObject")
For Each dosya In s1.GetFolder(ThisWorkbook.Path).Files
uzanti = s1.GetExtensionName(ThisWorkbook.Path & "/" & dosya.Name)
If uzanti = "gif" Then ListBox1.AddItem dosya.Name
Next
End Sub
arkadaşlar bu kodu kulandım ama olmadı hata nerede acaba.
ve ayrıca userforma bir mp3 dosyasını nasıl gömeriz yani klasörden değilde formun içine nasıl gömeriz tşk.
Son düzenleme:
