Ofis 2010 dada denedim, çalışıyor. Gönderdiğim şekilde deneyin
http://s5.dosya.tc/server3/1s0fmu/say.zip.html
http://s5.dosya.tc/server3/1s0fmu/say.zip.html
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub saydir()
Set s1 = Sheets("Sayfa1")
Set s2 = Sheets("Sayfa2")
s2.Range("a2:C1000").ClearContents
say = s1.Range("A" & Cells.Rows.Count).End(3).Row
Set doc = CreateObject("Word.Document")
doc.Application.documents.Open "D:\dene.docx"
doc.Application.ActiveDocument.Select
yaz = 2
For i = 2 To say
bul = s1.Range("B" & i)
If UBound(Split(doc.Application.Selection, bul)) <> 0 Then
s2.Range("A" & yaz).Value = s1.Range("A" & i)
s2.Range("B" & yaz).Value = s1.Range("B" & i)
s2.Range("C" & yaz).Value = UBound(Split(doc.Application.Selection, bul))
yaz = yaz + 1
End If
Next
doc.Application.Quit
Set doc = Nothing
End Sub