- Katılım
- 26 Ağustos 2008
- Mesajlar
- 50
- Excel Vers. ve Dili
- 2003 türkçe
Private Sub CommandButton1_Click()
fName = Application.InputBox("Dosya ismi girin...", "Dosya")
If fName <> 0 Then
f = InputBox("Kaçıncı Satıra Kadar Aktarsın?", "Aktarılacak Bölge")
Range("A1: ı" & f).Copy
Set objword = CreateObject("Word.Application")
objword.Visible = True
Set MyDoc = objword.Documents.Add(DocumentType:=wdNewBlankDocument)
objword.Selection.PasteSpecial Link:=False, DataType:=3
objword.activedocument.SaveAs "C:\" & fName & ".doc"
End If
Application.CutCopyMode = False
End Sub
ile exceldeki bir metni worde atıyorum ama kaç satır istersem istiyeyim word'ün bir sayfası kadarını kopyalıyor. tüm excel dosyamı nasıl kopyalayabilirim?
fName = Application.InputBox("Dosya ismi girin...", "Dosya")
If fName <> 0 Then
f = InputBox("Kaçıncı Satıra Kadar Aktarsın?", "Aktarılacak Bölge")
Range("A1: ı" & f).Copy
Set objword = CreateObject("Word.Application")
objword.Visible = True
Set MyDoc = objword.Documents.Add(DocumentType:=wdNewBlankDocument)
objword.Selection.PasteSpecial Link:=False, DataType:=3
objword.activedocument.SaveAs "C:\" & fName & ".doc"
End If
Application.CutCopyMode = False
End Sub
ile exceldeki bir metni worde atıyorum ama kaç satır istersem istiyeyim word'ün bir sayfası kadarını kopyalıyor. tüm excel dosyamı nasıl kopyalayabilirim?