Selam arkadaşlar,
Userformunda 2 tane option button mevcut ama userform çalıştırdığımda 2 butonuda seçebiliyorum bunu nasıl tek buton seçilmiş hale getirebilirim. Kodlarım aşağıda yardım rica ediyorum.
Private Sub CommandButton1_Click()
Sayfa4.Select
If OptionButton1.Value Then
'Yazdır
ExecuteExcel4Macro "PRINT(1,,,1,,,,,,,,2,,,TRUE,,FALSE)"
End If
'Baskı Önizleme
If OptionButton2.Value = True Then
Unload Me
Unload UserForm2
ActiveSheet.PrintPreview
UserForm2.Show
End If
End Sub
Userformunda 2 tane option button mevcut ama userform çalıştırdığımda 2 butonuda seçebiliyorum bunu nasıl tek buton seçilmiş hale getirebilirim. Kodlarım aşağıda yardım rica ediyorum.
Private Sub CommandButton1_Click()
Sayfa4.Select
If OptionButton1.Value Then
'Yazdır
ExecuteExcel4Macro "PRINT(1,,,1,,,,,,,,2,,,TRUE,,FALSE)"
End If
'Baskı Önizleme
If OptionButton2.Value = True Then
Unload Me
Unload UserForm2
ActiveSheet.PrintPreview
UserForm2.Show
End If
End Sub