DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
sat = ListBox1.ListCount
sut = ListBox1.ColumnCount
Sheets("sayfa2").Range("a1:" & Cells(sat, sut).Address) = ListBox1.List
Sheets("sayfa2").PrintOut
Aşağıdaki gibi bir kodu deneyebilirsiniz.
Kod:sat = ListBox1.ListCount sut = ListBox1.ColumnCount Sheets("sayfa2").Range("a1:" & Cells(sat, sut).Address) = ListBox1.List Sheets("sayfa2").PrintOut
Levent beyin kodlarınıa aşğıdaki kırmızı satırrıda ekleyin.Sayın Menteşoğlu verdiğiniz kod ile sayfa2 komple yazdırılıyor , sadece listbox içerisindeki verileri yazdırabilmem için ne yapmam lazım ?
sat = ListBox1.ListCount
sut = ListBox1.ColumnCount
Sheets("sayfa2").Range("a1:" & Cells(sat, sut).Address) = ListBox1.List
[B][COLOR="Red"]sheets("Sayfa2").pagesetup.printarea = "Sayfa2!" & Range("a1:" & Cells(sat, sut).Address).address[/COLOR][/B]
Sheets("sayfa2").PrintOut
Levent beyin kodlarınıa aşğıdaki kırmızı satırrıda ekleyin.
Kod:sat = ListBox1.ListCount sut = ListBox1.ColumnCount Sheets("sayfa2").Range("a1:" & Cells(sat, sut).Address) = ListBox1.List [B][COLOR="Red"]sheets("Sayfa2").pagesetup.printarea = "Sayfa2!" & Range("a1:" & Cells(sat, sut).Address).address[/COLOR][/B] Sheets("sayfa2").PrintOut