DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Daha fazla açıklayıcı olursanız yardımcı olmaya çalışırım.
Option Explicit
Private Sub Document_Close()
Selection.WholeStory
Selection.Delete Unit:=wdCharacter, Count:=1
ThisDocument.Save
End Sub
Private Sub Document_Open()
Dim i As Object
Dim d As Object
Set i = CreateObject("Excel.Application")
Set d = i.Workbooks.Open(ThisDocument.Path & "\DENEME.xls")
With Selection
.TypeText Text:="Sayın, " & d.Sheets("Sayfa1").[A2]
.TypeParagraph
.TypeText Text:="Adres, " & d.Sheets("Sayfa1").[C2]
.TypeParagraph
.TypeText Text:="Borcunuz, " & d.Sheets("Sayfa1").[B2] & " YTL dir."
.TypeParagraph
.TypeText Text:="Lütfen ödeyiniz."
End With
d.Close
i.Quit
End Sub