ismailozkan4224
Altın Üye
- Katılım
- 22 Kasım 2011
- Mesajlar
- 175
- Excel Vers. ve Dili
- 2007 türkçe
değerli arkadaşlar aşağıdaki kodla BR sütunundaki değere göre (Ax,BRx)satır yüksekliğini ayarlamaya çalıştım. ancak hata veriyor. ve eksikliği bulamadım. yardımlarınızı bekliyorum.
Sub satiryuksekligiayarla()
Dim i As Integer
For i = 1 To 150
If Range(i, BR) < 1 And X < 85 Then
Cells(i, BR).RowHeight = 15
If Range(i, BR) < 85 And X < 170 Then
Cells(i, BR).RowHeight = 30
If Range(i, BR) < 170 And X < 255 Then
Cells(i, BR).RowHeight = 45
If Range(i, BR) < 255 And X < 335 Then
Cells(i, BR).RowHeight = 60
If Range(i, BR) < 335 And X < 420 Then
Cells(i, BR).RowHeight = 75
If Range(i, BR) < 420 And X < 505 Then
Cells(i, BR).RowHeight = 90
End If
End Sub
Sub satiryuksekligiayarla()
Dim i As Integer
For i = 1 To 150
If Range(i, BR) < 1 And X < 85 Then
Cells(i, BR).RowHeight = 15
If Range(i, BR) < 85 And X < 170 Then
Cells(i, BR).RowHeight = 30
If Range(i, BR) < 170 And X < 255 Then
Cells(i, BR).RowHeight = 45
If Range(i, BR) < 255 And X < 335 Then
Cells(i, BR).RowHeight = 60
If Range(i, BR) < 335 And X < 420 Then
Cells(i, BR).RowHeight = 75
If Range(i, BR) < 420 And X < 505 Then
Cells(i, BR).RowHeight = 90
End If
End Sub
