Sub makro1()
sayı = 12345#
Cells(1, 1) = 10 & Mid(sayı, 3, 3)
Cells(2, 1) = 11 & Mid(sayı, 3, 3)
Cells(3, 1) = 12 & Mid(sayı, 3, 3)
Cells(4, 1) = 13 & Mid(sayı, 3, 3)
Cells(5, 1) = 14 & Mid(sayı, 3, 3)
Cells(6, 1) = 15 & Mid(sayı, 3, 3)
Cells(7, 1) = 16 & Mid(sayı, 3, 3)
Cells(8, 1) = 17 & Mid(sayı, 3, 3)
Cells(9, 1) = 18 & Mid(sayı, 3, 3)
Cells(10, 1) = 19 & Mid(sayı, 3, 3)
Cells(11, 1) = 20 & Mid(sayı, 3, 3)
End Sub
yukarıdaki makroda satır sayısını 1 artırmanın kolay bir yolu varmıdır.tek tek elle yazmak yerine tanımlamayla olurmu??
sayı = 12345#
Cells(1, 1) = 10 & Mid(sayı, 3, 3)
Cells(2, 1) = 11 & Mid(sayı, 3, 3)
Cells(3, 1) = 12 & Mid(sayı, 3, 3)
Cells(4, 1) = 13 & Mid(sayı, 3, 3)
Cells(5, 1) = 14 & Mid(sayı, 3, 3)
Cells(6, 1) = 15 & Mid(sayı, 3, 3)
Cells(7, 1) = 16 & Mid(sayı, 3, 3)
Cells(8, 1) = 17 & Mid(sayı, 3, 3)
Cells(9, 1) = 18 & Mid(sayı, 3, 3)
Cells(10, 1) = 19 & Mid(sayı, 3, 3)
Cells(11, 1) = 20 & Mid(sayı, 3, 3)
End Sub
yukarıdaki makroda satır sayısını 1 artırmanın kolay bir yolu varmıdır.tek tek elle yazmak yerine tanımlamayla olurmu??
