DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Dosyanız ektedir.
Kod:Sub OnayKutusu62_Tıklat() Dim i As Byte Range("A5:A62").Value = Range("A2") End Sub
HOCAM çok tşkr ederim. Güzel olmuş, ama dünya felekte bu seçim yaptığımızda,
sadece dolu satırların onay kutusu seçilse mükemmel olur. çünkü seçtiğimiz satırları başka sayfalara atıyoruz... Selamlar...
Sub sec()
Set s1 = Sheets("RAPOR")
Dim Picture As Object
For Each Picture In s1.Shapes
If TypeName(s1.Shapes(Picture.Name).OLEFormat.Object) = "CheckBox" Then
yer = Cells(Picture.BottomRightCell.Row, Picture.BottomRightCell.Column).Address
yer1 = Cells(Picture.BottomRightCell.Row, "a").Address
If Picture.BottomRightCell.Row >= 5 And Picture.BottomRightCell.Row < 63 Then
s1.Shapes(Picture.Name).OLEFormat.Object.Height = Cells(Picture.BottomRightCell.Row, Picture.BottomRightCell.Column).Height - 2
s1.Shapes(Picture.Name).OLEFormat.Object.Top = Cells(Picture.BottomRightCell.Row, 1).Top + 2
If Cells(Picture.BottomRightCell.Row, 2).Value <> "" Then
If yer = yer1 Then
If s1.Shapes("Check Box 62").OLEFormat.Object.Value = xlOn Then
s1.Shapes(Picture.Name).OLEFormat.Object.Value = xlOn
Else
s1.Shapes(Picture.Name).OLEFormat.Object.Value = xlOff
End If
End If
End If
End If
End If
Next Picture
End Sub
kod
Kod:sub sec() set s1 = sheets("rapor") dim picture as object for each picture ın s1.shapes ıf typename(s1.shapes(picture.name).oleformat.object) = "checkbox" then yer = cells(picture.bottomrightcell.row, picture.bottomrightcell.column).address yer1 = cells(picture.bottomrightcell.row, "a").address ıf picture.bottomrightcell.row >= 5 and picture.bottomrightcell.row < 63 then s1.shapes(picture.name).oleformat.object.height = cells(picture.bottomrightcell.row, picture.bottomrightcell.column).height - 2 s1.shapes(picture.name).oleformat.object.top = cells(picture.bottomrightcell.row, 1).top + 2 ıf cells(picture.bottomrightcell.row, 2).value <> "" then ıf yer = yer1 then ıf s1.shapes("check box 62").oleformat.object.value = xlon then s1.shapes(picture.name).oleformat.object.value = xlon else s1.shapes(picture.name).oleformat.object.value = xloff end ıf end ıf end ıf end ıf end ıf next picture end sub
kod
Kod:Sub sec() Set s1 = Sheets("RAPOR") Dim Picture As Object For Each Picture In s1.Shapes If TypeName(s1.Shapes(Picture.Name).OLEFormat.Object) = "CheckBox" Then yer = Cells(Picture.BottomRightCell.Row, Picture.BottomRightCell.Column).Address yer1 = Cells(Picture.BottomRightCell.Row, "a").Address If Picture.BottomRightCell.Row >= 5 And Picture.BottomRightCell.Row < 63 Then s1.Shapes(Picture.Name).OLEFormat.Object.Height = Cells(Picture.BottomRightCell.Row, Picture.BottomRightCell.Column).Height - 2 s1.Shapes(Picture.Name).OLEFormat.Object.Top = Cells(Picture.BottomRightCell.Row, 1).Top + 2 If Cells(Picture.BottomRightCell.Row, 2).Value <> "" Then If yer = yer1 Then If s1.Shapes("Check Box 62").OLEFormat.Object.Value = xlOn Then s1.Shapes(Picture.Name).OLEFormat.Object.Value = xlOn Else s1.Shapes(Picture.Name).OLEFormat.Object.Value = xlOff End If End If End If End If End If Next Picture End Sub
hALİT BEY tşkrler ,gönderdiğini kodlar örnek dosyada çalıştı ama, kendi çalışmamda olmadı, yinede tşkrler...