cems
Altın Üye
- Katılım
- 2 Eylül 2005
- Mesajlar
- 2,581
- Excel Vers. ve Dili
- office 2010 tr 32bit
K sütununda 7000 satır veri dikine olarak bulunuyor ancak arada dağınık bulunan boş hücreler kopyala-tersine çevirerek yapıştır işleminde ( sütuna dizili bilgiyi satır satır yapabilmek isterken) hatalı çekim yaparak sorun çıkartıyor.
a) Sütunda boş hücreleri aşağıdaki kodla birleşmiş olarak nasıl sildirip
b) döngü halinde kopyala-özel tersine çevirerek yapıştır yapabiliriz ?
Sub Makro2()
Range("K1:K9").Select
Selection.Copy
Sheets("sayfa1").Select
mlastrow = Cells(Rows.Count, "A").End(xlUp).Row
Cells(mlastrow + 1, "A").Activate
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
Range("K1:K9").Select
Application.CutCopyMode = False
Selection.Delete Shift:=xlUp
End Sub
a) Sütunda boş hücreleri aşağıdaki kodla birleşmiş olarak nasıl sildirip
b) döngü halinde kopyala-özel tersine çevirerek yapıştır yapabiliriz ?
Sub Makro2()
Range("K1:K9").Select
Selection.Copy
Sheets("sayfa1").Select
mlastrow = Cells(Rows.Count, "A").End(xlUp).Row
Cells(mlastrow + 1, "A").Activate
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
Range("K1:K9").Select
Application.CutCopyMode = False
Selection.Delete Shift:=xlUp
End Sub
