ahmed_ummu
Altın Üye
- Katılım
- 28 Mart 2011
- Mesajlar
- 777
- Excel Vers. ve Dili
- Excel 2010 Professional Plus 64 Bit
Merhaba arkadaşlar.
Aşağıdaki kodlarda "Type mismatch" hatası veriyor. Neden olabilir. oran değişkeni General kısmında "Public oran as Varinat" olarak tanımlandı.
Combobox13 den hangi seçeneği seçersem o kod satırını seçip değişken tipi hatasın veriyor. Yardımcı olursanız sevinirim.
If ComboBox13.Value = "1/3" Then
oran = (ComboBox13.Value / 3) * 1
End If
If ComboBox13.Value = "2/3" Then
oran = (ComboBox13.Value / 3) * 2
End If
If ComboBox13.Value = "3/3" Then
oran = (ComboBox13.Value / 3) * 3
End If
ActiveCell.Offset(0, 6).Value = (TextBox55.Value * oran)
ActiveCell.Offset(0, 6).NumberFormat = "#,##0.00"
ActiveCell.Offset(0, 6).HorizontalAlignment = xlRight
Aşağıdaki kodlarda "Type mismatch" hatası veriyor. Neden olabilir. oran değişkeni General kısmında "Public oran as Varinat" olarak tanımlandı.
Combobox13 den hangi seçeneği seçersem o kod satırını seçip değişken tipi hatasın veriyor. Yardımcı olursanız sevinirim.
If ComboBox13.Value = "1/3" Then
oran = (ComboBox13.Value / 3) * 1
End If
If ComboBox13.Value = "2/3" Then
oran = (ComboBox13.Value / 3) * 2
End If
If ComboBox13.Value = "3/3" Then
oran = (ComboBox13.Value / 3) * 3
End If
ActiveCell.Offset(0, 6).Value = (TextBox55.Value * oran)
ActiveCell.Offset(0, 6).NumberFormat = "#,##0.00"
ActiveCell.Offset(0, 6).HorizontalAlignment = xlRight
