DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
[SIZE=2]Sub test()
Set fd = Application.FileDialog(msoFileDialogFilePicker)
fd.Filters.Clear
fd.Filters.Add "Metin dosyaları(*.txt)", "*.txt", 1
ret = fd.Show
If Not ret = -1 Then Exit Sub
fn = fd.SelectedItems(1)
txt = CreateObject("Scripting.FileSystemObject").OpenTextFile(fn).readall
Set reg = CreateObject("vbscript.regexp")
reg.Global = True
reg.MultiLine = True
reg.Pattern = "\<(.+?)\>"
Set mcol = reg.Execute(txt)
For i = 0 To mcol.Count - 1
Cells(i + 1, "a") = mcol(i).SubMatches(0)
Next
End Sub[/SIZE]
Merhaba;
Listeyi bir text dosyasına yapıştırıp aşağıdaki kodu deneyin.
Kod:[SIZE=2]Sub test() Set fd = Application.FileDialog(msoFileDialogFilePicker) fd.Filters.Clear fd.Filters.Add "Metin dosyaları(*.txt)", "*.txt", 1 ret = fd.Show If Not ret = -1 Then Exit Sub fn = fd.SelectedItems(1) txt = CreateObject("Scripting.FileSystemObject").OpenTextFile(fn).readall Set reg = CreateObject("vbscript.regexp") reg.Global = True reg.MultiLine = True reg.Pattern = "\<(.+?)\>" Set mcol = reg.Execute(txt) For i = 0 To mcol.Count - 1 Cells(i + 1, "a") = mcol(i).SubMatches(0) Next End Sub[/SIZE]
Sn Zeki Gürsoy Outlook "Gelen Kutusu" 'nda bulunan tüm mailler için aynı yöntemi nasıl uygulayabiliriz?
Outlook ortamında aldığımız maillerin adres bilgilerini öğrenmek istiyoruz.
Teşekkürler,
İyi Çalışmalar.
Sub mail_Adresi_getir()
Dim outlookApp As Outlook.Application, oOutlook As Object
Dim oInbox As Outlook.Folder, oMail As Outlook.MailItem
Set outlookApp = New Outlook.Application
Set oOutlook = outlookApp.GetNamespace("MAPI")
Set oInbox = oOutlook.GetDefaultFolder(olFolderInbox)
satir = 0
For Each oMail In oInbox.Items
DoEvents
satir = satir + 1
Cells(satir, 1).Value = oMail.SenderEmailAddress
Next oMail
End Sub