işaretli olanını nasıl yazdırırım?

Katılım
26 Kasım 2007
Mesajlar
308
Excel Vers. ve Dili
Excel 2003
Bir hücreye 3 seçenekli checkboxlardan işaretli olanını nasıl kaydederim?

yani;

ActiveCell.Offset(0, 11).Value = (checkbox1.caption - checkbox2.caption - checkbox3.caption)
 

Orion1

Uzman
Uzman
Katılım
1 Mart 2005
Mesajlar
22,254
Excel Vers. ve Dili
Win7 Home Basic TR 64 Bit

Ofis-2010-TR 32 Bit
checkbox'lar çalışma sayfasındamı.Userform'damı?:cool:
 

Orion1

Uzman
Uzman
Katılım
1 Mart 2005
Mesajlar
22,254
Excel Vers. ve Dili
Win7 Home Basic TR 64 Bit

Ofis-2010-TR 32 Bit
Aşağıdaki kodları userform'un kod sayfasına yapıştırınız.:cool:
Kod:
Private Sub CheckBox1_Click()
Dim deg As String
ActiveCell.Offset(0, 11).Value = ""
If CheckBox1.Value = True Then deg = CheckBox1.Caption
If CheckBox2.Value = True Then deg = deg & " " & CheckBox2.Caption
If CheckBox3.Value = True Then deg = deg & " " & CheckBox3.Caption
ActiveCell.Offset(0, 11).Value = deg
End Sub

Private Sub CheckBox2_Click()
Dim deg As String
ActiveCell.Offset(0, 11).Value = ""
If CheckBox1.Value = True Then deg = CheckBox1.Caption
If CheckBox2.Value = True Then deg = deg & " " & CheckBox2.Caption
If CheckBox3.Value = True Then deg = deg & " " & CheckBox3.Caption
ActiveCell.Offset(0, 11).Value = deg

End Sub

Private Sub CheckBox3_Click()
Dim deg As String
ActiveCell.Offset(0, 11).Value = ""
If CheckBox1.Value = True Then deg = CheckBox1.Caption
If CheckBox2.Value = True Then deg = deg & " " & CheckBox2.Caption
If CheckBox3.Value = True Then deg = deg & " " & CheckBox3.Caption
ActiveCell.Offset(0, 11).Value = deg

End Sub
 
Katılım
26 Kasım 2007
Mesajlar
308
Excel Vers. ve Dili
Excel 2003
hocam n' olur af buyurun, bunun daha kısa bir yolu yok mudur? o kadar çok seçenekli sorum var ki formumda?
 

Orion1

Uzman
Uzman
Katılım
1 Mart 2005
Mesajlar
22,254
Excel Vers. ve Dili
Win7 Home Basic TR 64 Bit

Ofis-2010-TR 32 Bit
hocam n' olur af buyurun, bunun daha kısa bir yolu yok mudur? o kadar çok seçenekli sorum var ki formumda?
Userform'a bir tane commandbutton koyun.
Ve aşağıdaki kodları ona yapıştırın.
Sonra butona tıklayın.:cool:
Kod:
Dim deg As String
ActiveCell.Offset(0, 11).Value = ""
If CheckBox1.Value = True Then deg = CheckBox1.Caption
If CheckBox2.Value = True Then deg = deg & " " & CheckBox2.Caption
If CheckBox3.Value = True Then deg = deg & " " & CheckBox3.Caption
ActiveCell.Offset(0, 11).Value = deg
 
Katılım
26 Kasım 2007
Mesajlar
308
Excel Vers. ve Dili
Excel 2003
hocam elinize sağlık, teşks
 
Üst